package com.ruoyi.system.outto.goods.impl;

import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.util.StringUtil;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.exception.GlobalException;
import com.ruoyi.common.utils.*;
import com.ruoyi.common.utils.http.HttpUtils;
import com.ruoyi.system.V2.gameAttr.mapper.GameAttributeMapper;
import com.ruoyi.system.V2.goodInfo.mapper.GoodsInfoImgMapper;
import com.ruoyi.system.V2.goodInfo.mapper.GoodsInfoMapper;
import com.ruoyi.system.V2.inter.mapper.ArtRecMapper;
import com.ruoyi.system.V2.inter.mapper.JymtaskMapper;
import com.ruoyi.system.feign.InterfaceFeignService;
import com.ruoyi.system.mapper.SysDictDataMapper;
import com.ruoyi.system.model.domain.*;
import com.ruoyi.system.model.dto.GoodsInfoAndAttrValueDto;
import com.ruoyi.system.model.service.UploadService;
import com.ruoyi.system.outto.GameContentUtils;
import com.ruoyi.system.outto.core.JYMRegionalCovert;
import com.ruoyi.system.outto.core.LCConstant;
import com.ruoyi.system.outto.core.OutUrlConstant;
import com.ruoyi.system.outto.core.constant.GameDetailConstant;
import com.ruoyi.system.outto.core.constant.GameJYMKeyUtil;
import com.ruoyi.system.outto.core.constant.GameTypeConstant;
import com.ruoyi.system.outto.dto.JYMData;
import com.ruoyi.system.outto.dto.JiaoYiMaoAttrUtil;
import com.ruoyi.system.outto.game.CommonApi;
import com.ruoyi.system.outto.goods.IJiaoYiMaoAPI;
import com.ruoyi.system.outto.goods.OLDJiaoYiMaoAPI;
import com.ruoyi.system.token.vo.ApiResponse;
import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaJymItemExternalGoodsBatchModifypriceRequest;
import com.taobao.api.request.AlibabaJymItemExternalGoodsBatchPublishRequest;
import com.taobao.api.request.AlibabaJymItemExternalGoodsBatchSynoffsaleRequest;
import com.taobao.api.response.AlibabaJymItemExternalGoodsBatchModifypriceResponse;
import com.taobao.api.response.AlibabaJymItemExternalGoodsBatchPublishResponse;
import com.taobao.api.response.AlibabaJymItemExternalGoodsBatchSynoffsaleResponse;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.beanutils.ConvertUtils;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.math.BigDecimal;
import java.net.HttpCookie;
import java.net.URL;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import java.util.stream.Collectors;

@Slf4j
@Service
public class OLDJiaoYiMaoAPIImpl implements OLDJiaoYiMaoAPI {

    @Resource
    private GoodsInfoImgMapper goodsInfoImgMapper;
    @Resource
    private GameAttributeMapper gameAttributeMapper;
    @Resource
    private ArtRecMapper artRecMapper;
    @Value("${desc.title}")
    private String descTitle;
    @Autowired
    private CommonApi commonApi;
    @Resource
    private SysDictDataMapper sysDictDataMapper;
    @Resource
    private JymtaskMapper jymtaskMapper;
    @Autowired
    private UploadService uploadService;

    @Override
    public AjaxResult addGame(GoodsInfoAndAttrValueDto goodsInfo, SalePartner salePartner) {

        String title = goodsInfo.getTitle();
        String guolv = guolv(title);
        goodsInfo.setTitle(guolv);
        String des = goodsInfo.getDes();
        guolv = guolv(des);
        goodsInfo.setDes(guolv);

        Map<String, Object> params = params(goodsInfo, salePartner);
        return AjaxResult.success(params);
    }

    @Override
    public AjaxResult editGame(GoodsInfoAndAttrValueDto goodsInfo, SalePartner sa) {
        Long jymid = null;
        if (StringUtils.isEmpty(goodsInfo.getOutId())) {
            throw new GlobalException("未获取到 outId ：" + goodsInfo.getOutId());
        }
        jymid = Long.parseLong(goodsInfo.getOutId());
        TaobaoClient client = new DefaultTaobaoClient(OutUrlConstant.JYMURL, sa.getSaleKey(), sa.getOther());

        String correspondjym = goodsInfo.getId() + "";

        if (Objects.nonNull(jymid)) {
            AlibabaJymItemExternalGoodsBatchModifypriceRequest req = new AlibabaJymItemExternalGoodsBatchModifypriceRequest();
            AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceModifyCommandDto obj1 = new AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceModifyCommandDto();
            List<AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceDto> list3 = new ArrayList<AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceDto>();
            AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceDto obj4 = new AlibabaJymItemExternalGoodsBatchModifypriceRequest.GoodsPriceDto();
            AlibabaJymItemExternalGoodsBatchModifypriceRequest.ExternalGoodsIdDto obj6 = new AlibabaJymItemExternalGoodsBatchModifypriceRequest.ExternalGoodsIdDto();
            obj6.setGoodsId(jymid);
            obj6.setExternalGoodsId(correspondjym);
            obj4.setPrice(goodsInfo.getPrice().toPlainString());
            list3.add(obj4);
            obj4.setExternalGoodsId(obj6);
            obj1.setGoodsPriceList(list3);
            String uuid = UUIDGenerator.generate12();
            obj1.setExternalBatchId(uuid);
            req.setGoodsPriceModifyCommand(obj1);
            AlibabaJymItemExternalGoodsBatchModifypriceResponse rsp = null;
            try {
                rsp = client.execute(req);
            } catch (ApiException e) {
                e.printStackTrace();
            }
            log.info("交易猫请求参数:{}", JSONObject.toJSONString(obj1));
            log.info("交易猫返回参数:{}", rsp.getBody());
            if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
                AlibabaJymItemExternalGoodsBatchModifypriceResponse.GoodsBatchResultDto result = rsp.getResult();
                if (result != null) {
                    Long batchId = result.getBatchId();
                    if (batchId != null) {
                        HashMap<String, Object> res = new HashMap<>();
                        res.put("req", JSONObject.toJSONString(obj1));
                        res.put("res", rsp.getBody());
                        res.put("msg", rsp.getBody());
                        res.put("code", 200);
                        res.put("outId", batchId);
                        setJymTask(goodsInfo, batchId, LCConstant.interEdit, sa.getSaleName(), sa.getId());
                        return AjaxResult.success(res);
                    }
                }
            }
            if (goodsInfo.getJymtask() == null) {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", JSONObject.toJSONString(obj1));
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return AjaxResult.success(res);
            }
        }
        HashMap<String, Object> res = new HashMap<>();
        res.put("req", "");
        res.put("res", "");
        res.put("msg", "交易猫ID为空");
        res.put("code", 500);
        return AjaxResult.success(res);
    }

//    @Override
//    public AjaxResult delGame(GoodsInfoAndAttrValueDto goodsInfo, SalePartner sa) {
//
//
//        Long jymid = null;
//        if (StringUtils.isEmpty(goodsInfo.getOutId())) {
//            throw new GlobalException("未获取到 outId ：" + goodsInfo.getOutId());
//        }
//        jymid = Long.parseLong(goodsInfo.getOutId());
//
//        String correspondjym = goodsInfo.getId() + "";
//
//        TaobaoClient client = new DefaultTaobaoClient(OutUrlConstant.JYMURL, sa.getSaleKey(), sa.getOther());
//        AlibabaJymItemExternalGoodsBatchOffsaleRequest req = new AlibabaJymItemExternalGoodsBatchOffsaleRequest();
//        AlibabaJymItemExternalGoodsBatchOffsaleRequest.GoodsOffSaleCommandDto obj1 = new AlibabaJymItemExternalGoodsBatchOffsaleRequest.GoodsOffSaleCommandDto();
//        List<AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto> list3 = new ArrayList<AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto>();
//        AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto obj4 = new AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto();
//        list3.add(obj4);
//        obj4.setExternalGoodsId(correspondjym);
//        obj4.setGoodsId(jymid);
//        obj1.setExternalGoodsIdList(list3);
//        obj1.setExternalBatchId(UUIDGenerator.generate12());
//        req.setGoodsOffSaleCommand(obj1);
//        AlibabaJymItemExternalGoodsBatchOffsaleResponse rsp = null;
//        try {
//            rsp = client.execute(req);
//        } catch (ApiException e) {
//            e.printStackTrace();
//        }
//        log.info("交易猫下架请求参数:{}", JSONObject.toJSONString(obj1));
//        log.info("交易猫下架请求参数={}", rsp.getBody());
//        if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() == true) {
//
//            AlibabaJymItemExternalGoodsBatchOffsaleResponse.GoodsBatchResultDto result = rsp.getResult();
//            if (result != null) {
//                Long batchId = result.getBatchId();
//                if (batchId != null) {
//                    HashMap<String, Object> res = new HashMap<>();
//                    res.put("req", JSONObject.toJSONString(obj1));
//                    res.put("res", rsp.getBody());
//                    res.put("msg", rsp.getBody());
//                    res.put("code", 200);
//                    res.put("outId", batchId);
//                    return AjaxResult.success(res);
//                }
//            }
//        }
//        Map<String, Object> result = new HashMap<>();
//        result.put("code", 500);
//        result.put("req", JSONObject.toJSONString(obj1));
//        result.put("res", rsp.getBody());
//        result.put("msg", "下架失败");
//        return AjaxResult.success(result);
//    }


    @Override
    public AjaxResult delGame(GoodsInfoAndAttrValueDto goodsInfo, SalePartner sa) {


        Long jymid = null;
        if (StringUtils.isEmpty(goodsInfo.getOutId())) {
            throw new GlobalException("未获取到 outId ：" + goodsInfo.getOutId());
        }
        jymid = Long.parseLong(goodsInfo.getOutId());

        String correspondjym = goodsInfo.getId() + "";

        TaobaoClient client = new DefaultTaobaoClient(OutUrlConstant.JYMURL, sa.getSaleKey(), sa.getOther());

        AlibabaJymItemExternalGoodsBatchSynoffsaleRequest req = new AlibabaJymItemExternalGoodsBatchSynoffsaleRequest();
        AlibabaJymItemExternalGoodsBatchSynoffsaleRequest.SyncOffSaleCommandDTO obj1 = new AlibabaJymItemExternalGoodsBatchSynoffsaleRequest.SyncOffSaleCommandDTO();

        obj1.setGoodsId(jymid);
        req.setParamSyncOffSaleCommandDTO(obj1);


//        AlibabaJymItemExternalGoodsBatchOffsaleRequest req = new AlibabaJymItemExternalGoodsBatchOffsaleRequest();
//        AlibabaJymItemExternalGoodsBatchOffsaleRequest.GoodsOffSaleCommandDto obj1 = new AlibabaJymItemExternalGoodsBatchOffsaleRequest.GoodsOffSaleCommandDto();
//        List<AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto> list3 = new ArrayList<AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto>();
//        AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto obj4 = new AlibabaJymItemExternalGoodsBatchOffsaleRequest.ExternalGoodsIdDto();
//        list3.add(obj4);
//        obj4.setExternalGoodsId(correspondjym);
//        obj4.setGoodsId(jymid);
//        obj1.setExternalGoodsIdList(list3);
//        obj1.setExternalBatchId(UUIDGenerator.generate12());
//        req.setGoodsOffSaleCommand(obj1);
        AlibabaJymItemExternalGoodsBatchSynoffsaleResponse rsp = null;
        try {
            rsp = client.execute(req);
            if (Objects.nonNull(rsp)) {

            }
        } catch (ApiException e) {
            e.printStackTrace();
        }
        log.info("交易猫下架请求参数:{}", JSONObject.toJSONString(obj1));
        log.info("交易猫下架请求参数={}", rsp.getBody());

        Map<String, Object> result = new HashMap<>();

        if (rsp.getResult().getResult().getSuccess()!=null) {
            if(rsp.getResult().getResult().getSuccess() == true) {
//                    HashMap<String, Object> res = new HashMap<>();
                result.put("req", JSONObject.toJSONString(obj1));
                result.put("res", rsp.getBody());
                result.put("msg", rsp.getBody());
                result.put("code", 200);
            }else {
                result.put("req", JSONObject.toJSONString(obj1));
                result.put("res", rsp.getBody());
                result.put("msg", rsp.getBody());
                result.put("code", 500);
            }
        }else {
            result.put("code", 500);
            result.put("req", JSONObject.toJSONString(obj1));
            result.put("res", rsp.getResult().getResult().getDesc());
            result.put("msg", rsp.getBody());
        }


        return AjaxResult.success(result);
    }



    //1657463101289429
    private Map<String, Object> params(GoodsInfoAndAttrValueDto goodsInfo, SalePartner sa) {
        String aesKey = sa.getTwoOther();

        String des = goodsInfo.getDes();
        if (StringUtils.isNotEmpty(des)) {
            des = (des.length() < 200 ? des : des.substring(0, 199));
        }
        String title = goodsInfo.getTitle();
        String pattern = "[1-9]([0-9]{7,11})";
        des = Pattern.compile(pattern).matcher(des).replaceAll("");
        title = Pattern.compile(pattern).matcher(title).replaceAll("");
        String extractAccount = getAccount();
        String extractPwd = "";
        if (StringUtils.isNotEmpty(goodsInfo.getAccountPassword())) {
            extractPwd = goodsInfo.getAccountPassword();
        } else {
            extractPwd = "123456";
        }

        String correspondjym = goodsInfo.getId() + "";

        if (StringUtils.isNotEmpty(title)) {
            title = (title.length() < 200 ? title : title.substring(0, 199));
        }


        des = des.replace("包人脸", "").replace("营地号", "")
                .replace("人脸", "")
                .replace("有二次", "可二次")
                .replace("实名", "")
                .replace("未成年人", "")
                .replace("暑假", "")
                .replace("高中", "")
                .replace("防沉迷", "")
                .replace("身份证", "")
                .replace("实名信息", "")
                .replace("身份证号码", "")
                .replace("实名", "")
                .replace("人脸验证", "")
                .replace("未成年词", "")
                .replace("小学", "")
                .replace("初中", "")
                .replace("高中", "")
                .replace("营地ID", "")
                .replace("Q号", "")
                .replace("Q", "扣")
                .replace("WX", "V")
                .replace("QQ号", "")
                .replace("手机号", "")
                .replace("微信号", "V")
                .replace("初中", "")
                .replace("到删", "")
                .replace("到删除", "")
                .replace("到除", "")
                .replace("cpx", "")
                .replace("小学", "");
        title = title.replace("包人脸", "").replace("营地号", "")
                .replace("人脸", "")
                .replace("有二次", "可二次")
                .replace("实名", "")
                .replace("未成年人", "")
                .replace("暑假", "")
                .replace("高中", "")
                .replace("防沉迷", "")
                .replace("身份证", "")
                .replace("实名信息", "")
                .replace("身份证号码", "")
                .replace("实名", "")
                .replace("人脸验证", "")
                .replace("未成年词", "")
                .replace("小学", "")
                .replace("初中", "")
                .replace("高中", "")
                .replace("营地ID", "")
                .replace("Q号", "")
                .replace("Q", "扣")
                .replace("WX", "V")
                .replace("QQ号", "")
                .replace("手机号", "")
                .replace("微信号", "V")
                .replace("初中", "")
                .replace("到删", "")
                .replace("到删除", "")
                .replace("到除", "")
                .replace("cpx", "")
                .replace("小学", "");

        TaobaoClient client = new DefaultTaobaoClient(OutUrlConstant.JYMURL, sa.getSaleKey(), sa.getOther());

        //只有王者荣耀
        if (GameTypeConstant.WZRYID.equals(goodsInfo.getGameId())) {
            AlibabaJymItemExternalGoodsBatchPublishRequest req = new AlibabaJymItemExternalGoodsBatchPublishRequest();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto obj1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto();
            obj1.setExternalBatchId(UUIDGenerator.generate12());
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> list3 = new ArrayList<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto obj4 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
            obj4.setSupportRetrieveCompensation(true);
            //游戏类型参数
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> list7 = new ArrayList<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto obj8 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            //游戏账号
            String regional = goodsInfo.getSystemName() + goodsInfo.getCarrierName();
            switch (regional) {
                case "安卓QQ":
                    obj8.setPropertyId(1642579782531115L);
                    break;
                case "安卓微信":
                    obj8.setPropertyId(1642579812114113L);
                    break;
                case "苹果QQ":
                    obj8.setPropertyId(1642580017622083L);
                    break;
                case "苹果微信":
                    obj8.setPropertyId(1642581061807099L);
                    break;
            }
            if (StringUtils.isEmpty(extractAccount)) {
                obj8.setValue(AESUtil.encrypt(extractAccount, aesKey));
            } else {
                obj8.setValue(AESUtil.encrypt(extractAccount, aesKey));
            }
            list7.add(obj8);
            obj8 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            //游戏密码
            switch (regional) {
                case "安卓QQ":
                    obj8.setPropertyId(1642579782544142L);
                    break;
                case "安卓微信":
                    obj8.setPropertyId(1642579812122125L);
                    break;
                case "苹果QQ":
                    obj8.setPropertyId(1642580017630093L);
                    break;
                case "苹果微信":
                    obj8.setPropertyId(1642581061809102L);
                    break;
            }
            if (StringUtils.isEmpty(extractPwd)) {
                obj8.setValue(AESUtil.encrypt(extractAccount, aesKey));
            } else {
                obj8.setValue(AESUtil.encrypt(extractPwd, aesKey));
            }
            list7.add(obj8);
            obj8 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            //手机号
            switch (regional) {
                case "安卓QQ":
                    obj8.setPropertyId(1642579783134053L);
                    obj8.setValue(AESUtil.encrypt("13943421979", aesKey));
                    list7.add(obj8);
                    break;
                case "安卓微信":
                    obj8.setPropertyId(1646706059915376L);
                    obj8.setValue(AESUtil.encrypt("13943421979", aesKey));
                    list7.add(obj8);
                    break;
                case "苹果QQ":
                    obj8.setPropertyId(1642580018345655L);
                    obj8.setValue(AESUtil.encrypt("13943421979", aesKey));
                    list7.add(obj8);
                    break;
                case "苹果微信":
                    obj8.setPropertyId(1642581062403440L);
                    obj8.setValue(AESUtil.encrypt("13943421979", aesKey));
                    list7.add(obj8);
                    break;
            }
            obj4.setSellerAccountPropertyList(list7);

            String type = goodsInfo.getGameName();

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> list11 = new ArrayList<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto obj14 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            obj14.setServerId(JYMRegionalCovert.getServerId(type, regional));
            obj14.setClientId(JYMRegionalCovert.getClientId(type, regional));
            obj14.setPlatformId(JYMRegionalCovert.getPlanformId(type, regional));
            obj14.setGameId(JYMRegionalCovert.getGameId(type));
            obj4.setGameProperty(obj14);
            obj4.setSecondCategoryId(JYMRegionalCovert.getSecondCategoryId(type, regional));
            obj4.setFirstCategoryId(JYMRegionalCovert.getFirstCategoryId());

            list11 = goodspropertyParams(goodsInfo, list11, regional);


            obj4.setGoodsPropertyList(list11);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> list17 = new ArrayList<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto obj18 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
            //图片

            String imgUrls = goodsInfo.getImgUrls();
            List<String> list = Arrays.asList(imgUrls.split(","));
            if (list.size() > 19) {
                list = list.subList(1, 19);
            }
            if (CollectionUtils.isEmpty(list) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                obj18.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                list17.add(obj18);
            } else {
                for (String img : list) {
                    boolean b = true;
                    try {
                        b = sensitiveScan(img);
                    } catch (Exception e) {
                        throw new GlobalException("图片解析失败");
                    }
                    if (b) {
                        String imgUrl = img;
                        imgUrl = toCoverImg(imgUrl);
                        obj18 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                        obj18.setImageUrl(imgUrl);
                        list17.add(obj18);
                    }
                }
            }
            obj4.setImageUrlList(list17);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto obj20 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

//        鸣剑曳影，小国标，找回包赔，枫霜尽，国服号，已验号，九霄神辉，全息碎影，星空梦想，天鹅之梦，无限飓风号，唐三藏，电玩高手，无双飞将，无尽星芒，深海之息，唤灵魅影，奇遇舞章

            if (title.length() > 15) {
                obj20.setTitle(title.substring(0, 15));
            } else {
                obj20.setTitle(title);
            }
            if (Objects.isNull(goodsInfo.getPrice())) {
                obj20.setPrice("999");
            } else {
                obj20.setPrice(goodsInfo.getPrice().toString());
            }

            if (StringUtils.isNotEmpty(des)) {
                obj20.setDescription(des.length() < 200 ? des : des.substring(0, 199));
            }
            obj20.setStorage(1L);
            obj4.setGoodsBaseInfo(obj20);
            obj4.setExternalGoodsId(correspondjym);
            obj4.setCanBargain(true);
            list3.add(obj4);
            obj1.setGoodsList(list3);

            req.setGoodsPublishCommand(obj1);
            AlibabaJymItemExternalGoodsBatchPublishResponse rsp = null;
            try {
                rsp = client.execute(req);
            } catch (ApiException e) {
                e.printStackTrace();
            }
            log.info("交易猫请求参数:{}", JSONObject.toJSONString(obj1));
            log.info("交易猫返回参数:{}", rsp.getBody());
            if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
                AlibabaJymItemExternalGoodsBatchPublishResponse.GoodsBatchResultDto result = rsp.getResult();
                if (result != null) {
                    Long batchId = result.getBatchId();
                    if (Objects.nonNull(batchId)) {
                        HashMap<String, Object> res = new HashMap<>();
                        res.put("req", JSONObject.toJSONString(obj1));
                        res.put("res", rsp.getBody());
                        res.put("msg", rsp.getBody());
                        res.put("code", 200);
                        res.put("outId", batchId);
                        return res;
                    } else {
                        log.error("交易猫发布商品失败:{}", rsp.getBody());
                        HashMap<String, Object> res = new HashMap<>();
                        res.put("req", JSONObject.toJSONString(obj1));
                        res.put("res", rsp.getBody());
                        res.put("msg", rsp.getBody());
                        res.put("code", 500);
                        return res;
                    }
                }
            } else {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", JSONObject.toJSONString(obj1));
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return res;
            }
        }
        //和平精英
        if (GameTypeConstant.HPJYID.equals(goodsInfo.getGameId())) {

            String str = "";

            String f14 = goodsInfo.getF14();
            if (StringUtils.isNotEmpty(f14)) {
                GameAttribute gameAttribute = gameAttributeMapper.selectGameAttributeById(Long.parseLong(f14));
                str = gameAttribute.getFieldName() + "战神框";
            } else {
                str = goodsInfo.getF18() + "套装";
            }
            GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDt = goodsInfo;

            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto goodsPublishCommandDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto();
            String replace = UUID.randomUUID().toString().replace("-", "");
            goodsPublishCommandDto.setExternalBatchId(replace);

            String regional = goodsInfo.getSystemName() + goodsInfo.getCarrierName();

            if (Objects.equals("安卓QQ", regional)) {

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
                goodsPublishDto.setSupportRetrieveCompensation(true);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(extractAccount), aesKey));
                goodsPropertyValueDto.setPropertyId(1645695622683132l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);
                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(extractPwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1645695622900357l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
//                //角色名称
//                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoMing = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                goodsPropertyValueDtoMing.setValue(AESUtil.encrypt("问客服", aesKey));
//                goodsPropertyValueDtoMing.setPropertyId(1645695623021477l);
//                goodsPropertyValueDtoList.add(goodsPropertyValueDtoMing);
                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("19148030083", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1645695623799443l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

//                List<GameAttribute> gameAttributes = new ArrayList<>();
//
//                goodsPropertyValueDto1.setValue("无");
//                goodsPropertyValueDto1.setPropertyId(1645695622686134l);
//                propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                gameAttributes.clear();

//                //稀有枪械
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                String f1 = goodsInfoAndAttrValueDt.getF1();
//                List<GameAttribute> gameAttributess = new ArrayList<>();
//                if (StringUtils.isNotEmpty(f1)) {
//                    String[] split = f1.split(",");
//                    gameAttributess = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
//                }
//                if (CollectionUtils.isNotEmpty(gameAttributess)) {
//                    List<String> collect = gameAttributess.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    String xiyouqingxie = JYMData.xiyouqingxie;
//                    List<String> list = new ArrayList<>();
//                    List<JSONObject> jsonObjects = JSONObject.parseArray(xiyouqingxie, JSONObject.class);
//                    for (JSONObject jsonObject : jsonObjects) {
//                        for (String s : collect) {
//                            String name = jsonObject.getString("name");
//                            if (onlyHanZi(s).contains(onlyHanZi(name))) {
//                                list.add(name);
//                            }
//                        }
//                    }
//                    if (CollectionUtils.isNotEmpty(list)) {
//                        String join = StringUtils.join(list, ",");
//                        goodsPropertyValueDto1.setValue(join);
//                    } else {
//                        goodsPropertyValueDto1.setValue("无");
//                    }
//                } else {
//                    goodsPropertyValueDto1.setValue("无");
//                }
//                goodsPropertyValueDto1.setPropertyId(1645695622686134l);
//                propertyValueDtoListArr.add(goodsPropertyValueDto1);
//
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                //稀有载
//                String f2 = goodsInfoAndAttrValueDt.getF2();
//                if (StringUtils.isNotEmpty(f2)) {
//                    String[] split = f2.split(",");
//                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
//                }
//                if (CollectionUtils.isNotEmpty(gameAttributes)) {
//                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    String join = GameJYMKeyUtil.coverZaiJu(collect);
//                    goodsPropertyValueDto1.setValue(join);
//                } else {
//                    goodsPropertyValueDto1.setValue("无");
//                }
//                goodsPropertyValueDto1.setPropertyId(1645695622903359l);
//                propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                gameAttributes.clear();
//
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                //稀有飞行器
//                String f3 = goodsInfoAndAttrValueDt.getF3();
//                gameAttributes.clear();
//                if (StringUtils.isNotEmpty(f3)) {
//                    String[] split = f3.split(",");
//                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
//                }
//                if (CollectionUtils.isNotEmpty(gameAttributes)) {
//                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    List<String> list = new ArrayList<>();
//                    String fxiq = JYMData.fxiq;
//                    List<JSONObject> jsonObjects = JSONObject.parseArray(fxiq, JSONObject.class);
//                    for (JSONObject jsonObject : jsonObjects) {
//                        String name = jsonObject.getString("name");
//                        for (String s : collect) {
//                            s = s.replace("翼", "器");
//                            if (Objects.equals(s, name)) {
//                                list.add(s);
//                            }
//                        }
//                    }
//                    if (CollectionUtils.isNotEmpty(list)) {
//                        String join = StringUtils.join(list, ",");
//                        goodsPropertyValueDto1.setValue(join);
//                    } else {
//                        goodsPropertyValueDto1.setValue("无");
//                    }
//                } else {
//                    goodsPropertyValueDto1.setValue("无");
//                }
//                goodsPropertyValueDto1.setPropertyId(1645695623024480l);
//                propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                gameAttributes.clear();
//
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//
//                //稀有降落伞
//                goodsPropertyValueDto1.setValue("无");
//                goodsPropertyValueDto1.setPropertyId(1645695623047503l);
//                propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                gameAttributes.clear();
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                //稀有时装
//                gameAttributes.clear();
//                String f5 = goodsInfoAndAttrValueDt.getF5();
//                if (StringUtils.isNotEmpty(f5)) {
//                    String[] split = f5.split(",");
//                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
//                }
//                if (CollectionUtils.isNotEmpty(gameAttributes)) {
//                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    String join = coverShiZhuang(collect);
//                    if (StringUtils.isNotEmpty(join)) {
//                        goodsPropertyValueDto1.setValue(join);
//                        goodsPropertyValueDto1.setPropertyId(1645695623447135l);
//                        propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                        gameAttributes.clear();
//                    }
//                }
//                //王牌印记
//                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                String f16 = goodsInfo.getF16();
//                if (StringUtils.isNotEmpty(f16)) {
//                    goodsPropertyValueDto1.setValue(f16);
//                    goodsPropertyValueDto1.setPropertyId(1685002559806507l);
//                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
//                }
//                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);

                //是否可二次实名
                if (StringUtils.isNotEmpty(goodsInfo.getF10())) {
                    goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                    GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF10()));
                    switch (regional) {
                        case "安卓QQ":
                            goodsPropertyValueDto1.setPropertyId(1688720381402064l);
                            break;
                        case "安卓微信":
                            goodsPropertyValueDto1.setPropertyId(1688720457269017l);
                            break;
                        case "苹果QQ":
                            goodsPropertyValueDto1.setPropertyId(1688720781786587l);
                            break;
                        case "苹果微信":
                            goodsPropertyValueDto1.setPropertyId(1688720852414129l);
                            break;
                    }
                    if (gameAttribute1.getFieldName().equals("可二次实名")) {
                        goodsPropertyValueDto1.setValue("可二次实名");
                    } else {
                        goodsPropertyValueDto1.setValue("不可二次实名");
                    }
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);

                    goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                }
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                switch (regional) {
                    case "安卓QQ":
                        goodsPropertyValueDto1.setPropertyId(1688720345527053l);
                        break;
                    case "安卓微信":
                        goodsPropertyValueDto1.setPropertyId(1688720457269017l);
                        break;
                    case "苹果QQ":
                        goodsPropertyValueDto1.setPropertyId(1688720781786587l);
                        break;
                    case "苹果微信":
                        goodsPropertyValueDto1.setPropertyId(1688720852414129l);
                        break;
                }
                goodsPropertyValueDto1.setValue("无");
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);


                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1006473l);
                gamePropertyDto.setPlatformId(2l);
                gamePropertyDto.setClientId(1470047031091455l);
                gamePropertyDto.setServerId(1535364157745866l);

                goodsPublishDto.setGameProperty(gamePropertyDto);

                Long secondCategoryId = JYMRegionalCovert.getSecondCategoryId(goodsInfo.getGameName(), regional);
                goodsPublishDto.setSecondCategoryId(secondCategoryId);
                goodsPublishDto.setFirstCategoryId(1l);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                //图片
                String imgUrls = goodsInfo.getImgUrls();
                List<String> infoImgs = Arrays.asList(imgUrls.split(","));

                if (infoImgs.size() > 19) {
                    infoImgs = infoImgs.subList(0, 19);
                }
                if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                    goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                    goodsPublishImageDtosList.add(goodsPublishImageDto);
                } else {
                    for (String img : infoImgs) {
                        boolean b = true;
                        try {
                            b = sensitiveScan(img);
                        } catch (Exception e) {
                            throw new GlobalException("图片解析失败");
                        }
                        if (b) {
                            String imgUrl = img;
                            imgUrl = toCoverImg(imgUrl);
                            goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                            goodsPublishImageDto.setImageUrl(imgUrl);
                            goodsPublishImageDtosList.add(goodsPublishImageDto);
                        }
                    }
                }
                goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

                if (title.length() > 15) {
                    title = title.toString().substring(0, 15);
                }
                goodsBaseInfoDto.setTitle(title);
                if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                    goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
                } else {
                    goodsBaseInfoDto.setPrice("119");
                }
                goodsBaseInfoDto.setStorage(1l);

                if (StringUtils.isNotEmpty(des)) {
                    goodsBaseInfoDto.setDescription(des.length() < 200 ? des : des.substring(0, 199));
                }

                goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

                goodsPublishDto.setExternalGoodsId(correspondjym);
                goodsPublishDto.setCanBargain(true);

                goodsPublishDtoList.add(goodsPublishDto);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            } else if (Objects.equals("安卓微信", regional)) {

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
                goodsPublishDto.setSupportRetrieveCompensation(true);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long accOunt = new Date().getTime();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(accOunt), aesKey));
                goodsPropertyValueDto.setPropertyId(1645695787036425l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);

                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long pwd = new Date().getTime();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(pwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1645695787038426l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);

                //角色名称
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoMing = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoMing.setValue(AESUtil.encrypt("问客服", aesKey));
                goodsPropertyValueDtoMing.setPropertyId(1645695787187063l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoMing);


                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1645695787321103l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有枪械
                String f1 = goodsInfoAndAttrValueDt.getF1();
                List<GameAttribute> gameAttributes = new ArrayList<>();
                if (StringUtils.isNotEmpty(f1)) {
                    String[] split = f1.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String xiyouqingxie = JYMData.xiyouqingxie;
                    List<String> list = new ArrayList<>();
                    List<JSONObject> jsonObjects = JSONObject.parseArray(xiyouqingxie, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        for (String s : collect) {
                            String name = jsonObject.getString("name");
                            if (onlyHanZi(s).contains(onlyHanZi(name))) {
                                list.add(name);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695786836215l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有载
                gameAttributes.clear();
                String f2 = goodsInfoAndAttrValueDt.getF2();
                if (StringUtils.isNotEmpty(f2)) {
                    String[] split = f2.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = GameJYMKeyUtil.coverZaiJu(collect);
                    //String join = StringUtils.join(collect, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695787041427l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有飞行器
                gameAttributes.clear();
                String f3 = goodsInfoAndAttrValueDt.getF3();
                if (StringUtils.isNotEmpty(f3)) {
                    String[] split = f3.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    List<String> list = new ArrayList<>();
                    String fxiq = JYMData.fxiq;
                    List<JSONObject> jsonObjects = JSONObject.parseArray(fxiq, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        String name = jsonObject.getString("name");
                        for (String s : collect) {
                            s = s.replace("翼", "器");
                            if (Objects.equals(s, name)) {
                                list.add(s);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695787189067l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有时装
                gameAttributes.clear();
                String f5 = goodsInfoAndAttrValueDt.getF5();
                if (StringUtils.isNotEmpty(f5)) {
                    String[] split = f5.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    //String join = StringUtils.join(collect, ",");
                    String join = coverShiZhuang(collect);
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1650944351236680l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //降落伞
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setPropertyId(1685002585403340l);
                goodsPropertyValueDto1.setValue("无");
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //王牌印记
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                String f16 = goodsInfo.getF16();
                if (StringUtils.isNotEmpty(f16)) {
                    goodsPropertyValueDto1.setValue(f16);
                } else {
                    goodsPropertyValueDto1.setValue("0");
                }
                goodsPropertyValueDto1.setPropertyId(1685002634595368l);

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1006473l);
                gamePropertyDto.setPlatformId(2l);
                gamePropertyDto.setClientId(1470047033047733l);
                gamePropertyDto.setServerId(1539844286658920l);

                goodsPublishDto.setGameProperty(gamePropertyDto);

                Long secondCategoryId = JYMRegionalCovert.getSecondCategoryId(goodsInfo.getGameName(), regional);
                goodsPublishDto.setSecondCategoryId(secondCategoryId);
                goodsPublishDto.setFirstCategoryId(1l);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                //图片
                String imgUrls = goodsInfo.getImgUrls();
                List<String> infoImgs = Arrays.asList(imgUrls.split(","));

                if (infoImgs.size() > 19) {
                    infoImgs = infoImgs.subList(0, 19);
                }
                if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                    goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                    goodsPublishImageDtosList.add(goodsPublishImageDto);
                } else {

                    for (String img : infoImgs) {
                        boolean b = true;
                        try {
                            b = sensitiveScan(img);
                        } catch (Exception e) {
                            throw new GlobalException("图片解析失败");
                        }
                        if (b) {
                            String imgUrl = img;
                            imgUrl = toCoverImg(imgUrl);
                            goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                            goodsPublishImageDto.setImageUrl(imgUrl);
                            goodsPublishImageDtosList.add(goodsPublishImageDto);
                        }
                    }
                }
                goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

                if (title.length() > 15) {
                    title = title.toString().substring(0, 15);
                }
                goodsBaseInfoDto.setTitle(title);
                if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                    goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
                } else {
                    goodsBaseInfoDto.setPrice("119");
                }
                goodsBaseInfoDto.setStorage(1l);
                if (StringUtils.isNotEmpty(des)) {
                    goodsBaseInfoDto.setDescription(des.length() < 200 ? des : des.substring(0, 199));
                }

                goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

                goodsPublishDto.setExternalGoodsId(correspondjym);
                goodsPublishDto.setCanBargain(true);

                goodsPublishDtoList.add(goodsPublishDto);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            } else if (Objects.equals("苹果QQ", regional)) {

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
                goodsPublishDto.setSupportRetrieveCompensation(true);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long accOunt = new Date().getTime();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(accOunt), aesKey));
                goodsPropertyValueDto.setPropertyId(1645695907347329l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);
                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long pwd = new Date().getTime();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(pwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1645695907458455l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
                //角色名称
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoMing = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoMing.setValue(AESUtil.encrypt("问客服", aesKey));
                goodsPropertyValueDtoMing.setPropertyId(1645695907460457l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoMing);
                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1645695907607079l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有枪械
                String f1 = goodsInfoAndAttrValueDt.getF1();
                List<GameAttribute> gameAttributes = new ArrayList<>();
                if (StringUtils.isNotEmpty(f1)) {
                    String[] split = f1.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String xiyouqingxie = JYMData.xiyouqingxie;
                    List<String> list = new ArrayList<>();
                    List<JSONObject> jsonObjects = JSONObject.parseArray(xiyouqingxie, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        for (String s : collect) {
                            String name = jsonObject.getString("name");
                            if (onlyHanZi(s).contains(onlyHanZi(name))) {
                                list.add(name);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695907136144l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有载
                String f2 = goodsInfoAndAttrValueDt.getF2();
                if (StringUtils.isNotEmpty(f2)) {
                    String[] split = f2.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = GameJYMKeyUtil.coverZaiJu(collect);
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }

                goodsPropertyValueDto1.setPropertyId(1645695907349331l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有飞行器
                String f3 = goodsInfoAndAttrValueDt.getF3();
                if (StringUtils.isNotEmpty(f3)) {
                    String[] split = f3.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    List<String> list = new ArrayList<>();
                    String fxiq = JYMData.fxiq;
                    List<JSONObject> jsonObjects = JSONObject.parseArray(fxiq, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        String name = jsonObject.getString("name");
                        for (String s : collect) {
                            s = s.replace("翼", "器");
                            if (Objects.equals(s, name)) {
                                list.add(s);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695907462458l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有时装
                String f5 = goodsInfoAndAttrValueDt.getF5();
                if (StringUtils.isNotEmpty(f5)) {
                    String[] split = f5.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = coverShiZhuang(collect);
                    if (StringUtils.isNotEmpty(join)) {
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1650945194451106l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //稀有降落伞
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1685003022105087l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //王牌印记
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                String f16 = goodsInfo.getF16();
                if (StringUtils.isNotEmpty(f16)) {
                    goodsPropertyValueDto1.setValue(f16);
                } else {
                    goodsPropertyValueDto1.setValue("0");
                }
                goodsPropertyValueDto1.setPropertyId(1685003039300673l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);


                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1006473l);
                gamePropertyDto.setPlatformId(3l);
                gamePropertyDto.setClientId(1470047031280559l);
                gamePropertyDto.setServerId(1535364178344308l);

                goodsPublishDto.setGameProperty(gamePropertyDto);

                Long secondCategoryId = JYMRegionalCovert.getSecondCategoryId(goodsInfo.getGameName(), regional);
                goodsPublishDto.setSecondCategoryId(secondCategoryId);
                goodsPublishDto.setFirstCategoryId(1l);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                //图片
                String imgUrls = goodsInfo.getImgUrls();

                List<String> infoImgs = Arrays.asList(imgUrls.split(","));

                if (infoImgs.size() > 19) {
                    infoImgs = infoImgs.subList(0, 19);
                }
                if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                    goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                    goodsPublishImageDtosList.add(goodsPublishImageDto);
                } else {
                    for (String img : infoImgs) {
                        boolean b = true;
                        try {
                            b = sensitiveScan(img);
                        } catch (Exception e) {
                            throw new GlobalException("图片解析失败");
                        }
                        if (b) {
                            String imgUrl = img;
                            imgUrl = toCoverImg(imgUrl);
                            goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                            goodsPublishImageDto.setImageUrl(imgUrl);
                            goodsPublishImageDtosList.add(goodsPublishImageDto);
                        }
                    }
                }
                goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

                if (title.length() > 15) {
                    title = title.toString().substring(0, 14);
                }
                goodsBaseInfoDto.setTitle(title);
                if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                    goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
                } else {
                    goodsBaseInfoDto.setPrice("119");
                }
                goodsBaseInfoDto.setStorage(1l);
                if (StringUtils.isNotEmpty(des)) {
                    goodsBaseInfoDto.setDescription(des.length() < 200 ? des : des.substring(0, 150));
                }

                goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

                goodsPublishDto.setExternalGoodsId(correspondjym);
                goodsPublishDto.setCanBargain(true);

                goodsPublishDtoList.add(goodsPublishDto);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            } else if (Objects.equals("苹果微信", regional)) {

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
                goodsPublishDto.setSupportRetrieveCompensation(true);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(extractAccount), aesKey));
                goodsPropertyValueDto.setPropertyId(1645695979748163l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);
                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(extractPwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1645695979753168l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
                //角色名称
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoMing = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoMing.setValue(AESUtil.encrypt("问客服", aesKey));
                goodsPropertyValueDtoMing.setPropertyId(1645695979875016l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoMing);
                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1645695980022144l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有枪械
                String f1 = goodsInfoAndAttrValueDt.getF1();
                List<GameAttribute> gameAttributes = new ArrayList<>();
                if (StringUtils.isNotEmpty(f1)) {
                    String[] split = f1.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String xiyouqingxie = JYMData.xiyouqingxie;
                    List<String> list = new ArrayList<>();
                    List<JSONObject> jsonObjects = JSONObject.parseArray(xiyouqingxie, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        for (String s : collect) {
                            String name = jsonObject.getString("name");
                            if (onlyHanZi(s).contains(onlyHanZi(name))) {
                                list.add(name);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695979547454l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有载
                String f2 = goodsInfoAndAttrValueDt.getF2();
                gameAttributes.clear();
                if (StringUtils.isNotEmpty(f2)) {
                    String[] split = f2.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = GameJYMKeyUtil.coverZaiJu(collect);
                    //String join = StringUtils.join(collect, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695979756171l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                //稀有飞行器
                String f3 = goodsInfoAndAttrValueDt.getF3();
                gameAttributes.clear();
                if (StringUtils.isNotEmpty(f3)) {
                    String[] split = f3.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    List<String> list = new ArrayList<>();
                    String fxiq = JYMData.fxiq;
                    List<JSONObject> jsonObjects = JSONObject.parseArray(fxiq, JSONObject.class);
                    for (JSONObject jsonObject : jsonObjects) {
                        String name = jsonObject.getString("name");
                        for (String s : collect) {
                            s = s.replace("翼", "器");
                            if (Objects.equals(s, name)) {
                                list.add(s);
                            }
                        }
                    }
                    if (CollectionUtils.isNotEmpty(list)) {
                        String join = StringUtils.join(list, ",");
                        goodsPropertyValueDto1.setValue(join);
                    } else {
                        goodsPropertyValueDto1.setValue("无");
                    }
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1645695979877019l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //稀有时装
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                gameAttributes.clear();
                String f5 = goodsInfoAndAttrValueDt.getF5();
                if (StringUtils.isNotEmpty(f5)) {
                    String[] split = f5.split(",");
                    gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                }
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    // String join = StringUtils.join(collect, ",");
                    String join = coverShiZhuang(collect);
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
                goodsPropertyValueDto1.setPropertyId(1650945255021202l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //稀有降落伞
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1685003076247019l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //王牌印记
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                String f16 = goodsInfo.getF16();
                if (StringUtils.isNotEmpty(f16)) {
                    goodsPropertyValueDto1.setValue(f16);
                } else {
                    goodsPropertyValueDto1.setValue("0");
                }
                goodsPropertyValueDto1.setPropertyId(1685003089979393l);

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1006473l);
                gamePropertyDto.setPlatformId(3l);
                gamePropertyDto.setClientId(1499667551454656l);
                gamePropertyDto.setServerId(1539844295575679l);

                goodsPublishDto.setGameProperty(gamePropertyDto);

                Long secondCategoryId = JYMRegionalCovert.getSecondCategoryId(goodsInfo.getGameName(), regional);
                goodsPublishDto.setSecondCategoryId(secondCategoryId);
                goodsPublishDto.setFirstCategoryId(1l);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                //图片
                String imgUrls = goodsInfo.getImgUrls();

                List<String> infoImgs = Arrays.asList(imgUrls.split(","));
                if (infoImgs.size() > 19) {
                    infoImgs = infoImgs.subList(0, 19);
                }
                if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                    goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                    goodsPublishImageDtosList.add(goodsPublishImageDto);
                } else {
                    for (String img : infoImgs) {
                        boolean b = true;
                        try {
                            b = sensitiveScan(img);
                        } catch (Exception e) {
                            throw new GlobalException("图片解析失败");
                        }
                        if (b) {
                            String imgUrl = img;
                            imgUrl = toCoverImg(imgUrl);
                            goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                            goodsPublishImageDto.setImageUrl(imgUrl);
                            goodsPublishImageDtosList.add(goodsPublishImageDto);
                        }
                    }
                }
                goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

                if (StringUtils.isNotEmpty(title.toString()) && title.toString().length() > 15) {
                    title = title.toString().substring(0, 15);
                } else {
                    title = title.toString();
                }
                goodsBaseInfoDto.setTitle(title);
                if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                    goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
                } else {
                    goodsBaseInfoDto.setPrice("119");
                }
                goodsBaseInfoDto.setStorage(1l);
//                goodsBaseInfoDto.setDescription(des);
                if (StringUtils.isNotEmpty(des)) {
                    goodsBaseInfoDto.setDescription(des.length() < 200 ? des : des.substring(0, 199));
                }

                goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

                goodsPublishDto.setExternalGoodsId(correspondjym);
                goodsPublishDto.setCanBargain(true);

                goodsPublishDtoList.add(goodsPublishDto);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            }

            AlibabaJymItemExternalGoodsBatchPublishResponse rsp = null;
            AlibabaJymItemExternalGoodsBatchPublishRequest req = new AlibabaJymItemExternalGoodsBatchPublishRequest();
            req.setGoodsPublishCommand(goodsPublishCommandDto);
            try {
                rsp = client.execute(req);
            } catch (ApiException e) {
                e.printStackTrace();
            }
            log.info("交易猫请求参数:{}", JSONObject.toJSONString(goodsPublishCommandDto));
            log.info("交易猫返回参数:{}", rsp.getBody());
            if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
                AlibabaJymItemExternalGoodsBatchPublishResponse.GoodsBatchResultDto result = rsp.getResult();
                Long batchId = result.getBatchId();
                if (Objects.nonNull(batchId)) {
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 200);
                    res.put("outId", batchId);
                    return res;
                } else {
                    log.error("交易猫发布商品失败:{}", rsp.getBody());
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 500);
                    return res;
                }
            } else {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return res;
            }
        }
        //cf端游
        if (GameTypeConstant.CFID.equals(goodsInfo.getGameId())) {

            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto goodsPublishCommandDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto();
            String replace = UUID.randomUUID().toString().replace("-", "");
            goodsPublishCommandDto.setExternalBatchId(replace);

            GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDt = goodsInfo;

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
            goodsPublishDto.setSupportRetrieveCompensation(true);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
            //账号
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(extractAccount), aesKey));
            goodsPropertyValueDto.setPropertyId(1661147535334046l);
            goodsPropertyValueDtoList.add(goodsPropertyValueDto);
            //密码
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(extractPwd), aesKey));
            goodsPropertyValueDtoPwd.setPropertyId(1661147535345056l);
            goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
            //手机号
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
            goodsPropertyValueDtoTel.setPropertyId(1661147535711007l);
            goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

            //数量
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            //角色等级
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDto1.setPropertyId(1661147535330041l);
            goodsPropertyValueDto1.setValue("0");
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //军衔
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDto1.setPropertyId(1661147535341050l);
            goodsPropertyValueDto1.setValue("问客服");
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //v总数 1661147535349057
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            goodsPropertyValueDto1.setPropertyId(1661147535349057l);
            String f8 = goodsInfoAndAttrValueDt.getF8();
            if (StringUtils.isNotEmpty(f8)) {
                goodsPropertyValueDto1.setValue(f8);
            } else {
                goodsPropertyValueDto1.setValue("0");
            }
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //V枪
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            String f13 = goodsInfoAndAttrValueDt.getF13();
            if (StringUtils.isNotEmpty(f13)) {
                String[] split = f13.split(",");
                List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                List<String> list = new ArrayList<>();
                String vqiang = "M4A1-雷神,M4A1-黑龙,M4A1-玫瑰精灵,M4A1-黑骑士,M4A1-死神,RPG-盘龙,加特林-炼狱,汤姆逊-烈龙,AK47-麒麟,AK47-无影,AK47-火麒麟,AK47-黑武士,AK-12-天启,AN94-超新星,AWM-天龙,Barrett-毁灭,Barrett-极光,沙鹰-修罗,沙鹰-天神,擎天,龙啸,屠龙,麒麟刺,AWM-裁决,蔷薇大炮,M4A1-武圣,M4A1-龙血,AA-12-雷霆,AK47-机械迷城,AK47-雷暴,柯尔特,冠军之特,无";
                List<String> collection = Arrays.asList(vqiang.split(","));
                for (String s : collect) {
                    if (collection.contains(s)) {
                        list.add(s);
                    }
                }
                if (CollectionUtils.isNotEmpty(list)) {
                    String join = StringUtils.join(list, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
            } else {
                goodsPropertyValueDto1.setValue("无");
            }
            goodsPropertyValueDto1.setPropertyId(1661147535373073l);
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //炫金
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            String f15 = goodsInfoAndAttrValueDt.getF15();
            if (StringUtils.isNotEmpty(f15)) {
                goodsPropertyValueDto1.setValue("无");
                String[] split = f15.split(",");
                List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                List<String> list = new ArrayList<>();
                String vqiang = "王者之决,炫金火麒麟,炫金黑骑士,炫金骑士,炫金无影,炫金天龙,炫金天神,炫金黑龙,炫金千变,炫金毁灭,王者炎心,王者之翼,王者之圣,王者之鲨,王者之戮,王者之怒,王者之影,王者之刺,王者之幻,王者之击,王者之力,王者之啸,王者之势,王者之锋,王者之武,王者之灵,王者之魄,王者之心,王者之魂,王者幻神,王者星神,王者雷怒,王者白虎,王者火魄,王者蔷薇QBZ,王者冰魄,王者玉峰,王者森决,无";

                List<String> collection = Arrays.asList(vqiang.split(","));
                for (String s : collect) {
                    if (collection.contains(s)) {
                        list.add(s);
                    }
                }
                if (CollectionUtils.isNotEmpty(list)) {
                    String join = StringUtils.join(list, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
            } else {
                goodsPropertyValueDto1.setValue("无");
            }
            goodsPropertyValueDto1.setPropertyId(1685009829940074l);
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //音效
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            String f20 = goodsInfoAndAttrValueDt.getF20();
            if (StringUtils.isNotEmpty(f20)) {
                goodsPropertyValueDto1.setValue("无");
                String[] split = f20.split(",");
                List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                List<String> list = new ArrayList<>();
                String vqiang = "毁灭音效卡,火麒麟音效卡,极光音效卡,黑骑士音效卡,幻神音效卡,QBZ音效卡,裁决者音效卡,黑龙音效卡,雷神音效卡,绝迹语音包,白鲨语音包,N9语音包,金色蔷薇音效卡";
                List<String> collection = Arrays.asList(vqiang.split(","));
                for (String s : collect) {
                    if (collection.contains(s)) {
                        list.add(s);
                    }
                }
                if (CollectionUtils.isNotEmpty(list)) {
                    String join = StringUtils.join(list, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
            } else {
                goodsPropertyValueDto1.setValue("无");
            }
            goodsPropertyValueDto1.setPropertyId(1685009865562579l);
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //热门武器
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            if (StringUtils.isNotEmpty(f13)) {
                goodsPropertyValueDto1.setValue("无");
                String[] split = f13.split(",");
                List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                List<String> list = new ArrayList<>();
                String vqiang = "cop雷霆,金刚伞,王者森决,加特林-斗鱼平台,传说暗裔,传说梦魔,传说圣灵,王者炎心,荣耀世冠套,黄金猫猫手套-白鲨,黄金猫猫手套,猫猫-cop,贵族金-牛牛AK,usp雷暴,cop堕天神,cop幻灵,cop雷霆王者,荣耀世冠-柯尔特,竞技荣光,M200-幻神,传说光耀,传说光辉,金色小号,ScarLight-白虎,HK417-朱雀,98K星神,CAT,蝴蝶斯泰尔,6烈龙,Cat刀锋,冠军之刃,麒麟剑-堕天神,龙啸-堕天神,M4A1-堕天神,幻灵之锋,M4A1-幻灵,无";
                List<String> collection = Arrays.asList(vqiang.split(","));
                for (String s : collect) {
                    if (collection.contains(s)) {
                        list.add(s);
                    }
                }
                if (CollectionUtils.isNotEmpty(list)) {
                    String join = StringUtils.join(list, ",");
                    goodsPropertyValueDto1.setValue(join);
                } else {
                    goodsPropertyValueDto1.setValue("无");
                }
            } else {
                goodsPropertyValueDto1.setValue("无");
            }
            goodsPropertyValueDto1.setPropertyId(1685340676635093l);
            propertyValueDtoListArr.add(goodsPropertyValueDto1);
            //命运角色
            goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            String f19 = goodsInfoAndAttrValueDt.getF19();
            if (StringUtils.isNotEmpty(f19)) {
                String[] split = f19.split(",");
                List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
                List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                String join = StringUtils.join(collect, ",");
                goodsPropertyValueDto1.setValue(join);
            } else {
                goodsPropertyValueDto1.setValue("无");
            }
            goodsPropertyValueDto1.setValue("无");
            goodsPropertyValueDto1.setPropertyId(1661147535555174l);
            propertyValueDtoListArr.add(goodsPropertyValueDto1);

            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

            gamePropertyDto.setGameId(1005668L);
            gamePropertyDto.setPlatformId(5l);
            gamePropertyDto.setClientId(1472625225736942l);
            String cfServer = JYMRegionalCovert.getCfServer();
            List<JSONObject> jsonObjects = JSONObject.parseArray(cfServer, JSONObject.class);
            boolean b = true;
            for (JSONObject jsonObject : jsonObjects) {
                String serverName = goodsInfoAndAttrValueDt.getServerName();
                String name = jsonObject.getString("name");
                if (Objects.equals(name, serverName)) {
                    b = false;
                    String id = jsonObject.getString("id");
                    if (Objects.isNull(id)) {
                        throw new GlobalException("未匹配到相关区服");
                    }
                    gamePropertyDto.setServerId(Long.valueOf(id));
                }
            }
            if (b) {
                throw new GlobalException("未匹配到相关区服");
            }
            goodsPublishDto.setGameProperty(gamePropertyDto);

            goodsPublishDto.setSecondCategoryId(1661147535305031l);
            goodsPublishDto.setFirstCategoryId(1l);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
            //图片
            String imgUrls = goodsInfo.getImgUrls();
            List<String> infoImgs = Arrays.asList(imgUrls.split(","));
            if (infoImgs.size() > 19) {
                infoImgs = infoImgs.subList(0, 19);
            }
            if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                goodsPublishImageDtosList.add(goodsPublishImageDto);
            } else {
                for (String img : infoImgs) {
                    b = true;
                    try {
                        b = sensitiveScan(img);
                    } catch (Exception e) {
                        throw new GlobalException("图片解析失败");
                    }
                    if (b) {
                        String imgUrl = img;
                        imgUrl = toCoverImg(imgUrl);
                        goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                        goodsPublishImageDto.setImageUrl(imgUrl);
                        goodsPublishImageDtosList.add(goodsPublishImageDto);
                    }
                }
            }
            goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

            if (title.length() > 15) {
                title = title.toString().substring(0, 15);
            } else {
                title = (title + des).substring(0, 15);
            }
            goodsBaseInfoDto.setTitle(title);
            if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
            } else {
                goodsBaseInfoDto.setPrice("119");
            }
            goodsBaseInfoDto.setStorage(1l);
            goodsBaseInfoDto.setDescription(des);

            goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

            goodsPublishDto.setExternalGoodsId(correspondjym);
            goodsPublishDto.setCanBargain(true);

            goodsPublishDtoList.add(goodsPublishDto);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            AlibabaJymItemExternalGoodsBatchPublishResponse rsp = null;
            AlibabaJymItemExternalGoodsBatchPublishRequest req = new AlibabaJymItemExternalGoodsBatchPublishRequest();
            req.setGoodsPublishCommand(goodsPublishCommandDto);
            try {
                rsp = client.execute(req);
            } catch (ApiException e) {
                e.printStackTrace();
            }
            log.info("交易猫请求参数:{}", JSONObject.toJSONString(goodsPublishCommandDto));
            log.info("交易猫返回参数:{}", rsp.getBody());
            if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
                AlibabaJymItemExternalGoodsBatchPublishResponse.GoodsBatchResultDto result = rsp.getResult();
                Long batchId = result.getBatchId();
                if (Objects.nonNull(batchId)) {
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", goodsPublishCommandDto);
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 200);
                    res.put("outId", batchId);
                    return res;
                } else {
                    log.error("交易猫发布商品失败:{}", rsp.getBody());
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 500);
                    return res;
                }
            } else {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return res;
            }
        }
        //蛋仔
        if (GameTypeConstant.DZID.equals(goodsInfo.getGameId())) {
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto goodsPublishCommandDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto();
            String replace = UUID.randomUUID().toString().replace("-", "");
            goodsPublishCommandDto.setExternalBatchId(replace);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();
            goodsPublishDto.setSupportRetrieveCompensation(true);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
            String regional = goodsInfo.getSystemName();
            if (Objects.equals("安卓", regional)) {
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(extractAccount), aesKey));
                goodsPropertyValueDto.setPropertyId(1675909453351381l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);
                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(extractPwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1675909453355382l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
                //帐号类型
                String serverName = goodsInfo.getServerName();

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwdS = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                goodsPropertyValueDtoPwdS.setValue(AESUtil.encrypt(String.valueOf(pwd), aesKey));
                goodsPropertyValueDtoPwdS.setPropertyId(1675909453310362l);

                if (Objects.equals(serverName, "网易邮箱")) {
                    goodsPropertyValueDtoPwdS.setValue(AESUtil.encrypt(String.valueOf("邮箱帐号"), aesKey));
                } else {
                    goodsPropertyValueDtoPwdS.setValue(AESUtil.encrypt(String.valueOf("手机帐号"), aesKey));
                }
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwdS);

                //角色名称
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoName = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoName.setValue(AESUtil.encrypt(String.valueOf("蛋仔"), aesKey));
                goodsPropertyValueDtoName.setPropertyId(1675909453365387l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoName);
                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1675909453509442l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

                //帐号类型
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                String serverName = goodsInfo.getServerName();
                if (Objects.equals(serverName, "网易邮箱")) {
                    goodsPropertyValueDto1.setValue("网易邮箱帐号");
                } else {
                    goodsPropertyValueDto1.setValue("网易手机帐号");
                }
                goodsPropertyValueDto1.setPropertyId(1675909453540462l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //在线时间
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("全天在线");
                goodsPropertyValueDto1.setPropertyId(1675909453426408l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //角色等级
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1675909453325368l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //性别
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("男");
                goodsPropertyValueDto1.setPropertyId(1675909453339376l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //账号绑定
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("6");
                goodsPropertyValueDto1.setPropertyId(1675909453393396l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //至臻盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682405916604443l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //隐藏盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682405937105035l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //典藏盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682405956366228l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //商品描述
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                if (des.length() > 40) {
                    goodsPropertyValueDto1.setValue(des.substring(0, 20));
                } else {
                    goodsPropertyValueDto1.setValue(des);
                }

                goodsPropertyValueDto1.setPropertyId(1675909453375391l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //联名紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682405985602028l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //赛季紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682406020289849l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //活动紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682406039545517l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //翅膀
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682406060068640l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //限定坐骑
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682406075184807l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //段位
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682406089501723l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //历史总潮流度
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514682012577l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //赛季潮流度
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514688251186l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //至臻盲盒数
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514693498824l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //典藏盲盒数
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514698293511l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1010874L);
                gamePropertyDto.setPlatformId(2l);
                gamePropertyDto.setClientId(1470047031313923l);
                gamePropertyDto.setServerId(1612184795334477l);
                goodsPublishDto.setGameProperty(gamePropertyDto);

                goodsPublishDto.setSecondCategoryId(1675909453291355l);
                goodsPublishDto.setFirstCategoryId(1l);
            }
            if (Objects.equals("苹果", regional)) {
                //账号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long accOunt = new Date().getTime();
                goodsPropertyValueDto.setValue(AESUtil.encrypt(String.valueOf(accOunt), aesKey));
                goodsPropertyValueDto.setPropertyId(1675656675171455l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDto);

                //密码
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwd = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                long pwd = new Date().getTime();
                goodsPropertyValueDtoPwd.setValue(AESUtil.encrypt(String.valueOf(pwd), aesKey));
                goodsPropertyValueDtoPwd.setPropertyId(1675656675176458l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwd);
                //帐号类型
                String serverName = goodsInfo.getServerName();

                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoPwdS = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoPwdS.setPropertyId(1675656675128434l);

                if (Objects.equals(serverName, "网易邮箱")) {
                    goodsPropertyValueDtoPwdS.setValue(AESUtil.encrypt(String.valueOf("邮箱帐号"), aesKey));
                } else {
                    goodsPropertyValueDtoPwdS.setValue(AESUtil.encrypt(String.valueOf("手机帐号"), aesKey));
                }
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoPwdS);

                //角色名称
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoName = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoName.setValue(AESUtil.encrypt(String.valueOf("蛋仔"), aesKey));
                goodsPropertyValueDtoName.setPropertyId(1675656675188465l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoName);

                //手机号
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDtoTel = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDtoTel.setValue(AESUtil.encrypt("17737053518", aesKey));
                goodsPropertyValueDtoTel.setPropertyId(1675656675323533l);
                goodsPropertyValueDtoList.add(goodsPropertyValueDtoTel);

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);

                //数量
                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

                //帐号类型
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
//                String serverName = goodsInfo.getServerName();
                if (Objects.equals(serverName, "网易邮箱")) {
                    goodsPropertyValueDto1.setValue("网易邮箱帐号");
                } else {
                    goodsPropertyValueDto1.setValue("网易手机帐号");
                }
                goodsPropertyValueDto1.setPropertyId(1675656675356560l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                //在线时间
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("全天在线");
                goodsPropertyValueDto1.setPropertyId(1675656675260499l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //角色等级
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1675656675143440l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //性别
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("男");
                goodsPropertyValueDto1.setPropertyId(1675656675160449l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //账号绑定
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("6");
                goodsPropertyValueDto1.setPropertyId(1675656675221480l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //至臻盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331315483187l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //隐藏盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331346897304l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //典藏盲盒
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331386024605l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //商品描述
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                if (des.length() > 40) {
                    goodsPropertyValueDto1.setValue(des.substring(0, 20));
                } else {
                    goodsPropertyValueDto1.setValue(des);
                }
                goodsPropertyValueDto1.setPropertyId(1675656675199469l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //联名紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331407324542l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //赛季紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331432207648l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //活动紫皮
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331460911034l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //翅膀
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331505059279l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //限定坐骑
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331521145278l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //段位
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("无");
                goodsPropertyValueDto1.setPropertyId(1682331539897593l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //历史总潮流度
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514864938218l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //赛季潮流度
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514868904644l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //至臻盲盒数
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514873263001l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                //典藏盲盒数
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                goodsPropertyValueDto1.setValue("0");
                goodsPropertyValueDto1.setPropertyId(1683514877497642l);
                propertyValueDtoListArr.add(goodsPropertyValueDto1);

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();

                gamePropertyDto.setGameId(1010874L);
                gamePropertyDto.setPlatformId(3l);
                gamePropertyDto.setClientId(1470047031273482l);
                gamePropertyDto.setServerId(1612184795333472l);
                goodsPublishDto.setGameProperty(gamePropertyDto);

                goodsPublishDto.setSecondCategoryId(1675656675102423l);
                goodsPublishDto.setFirstCategoryId(1l);
            }

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
            //图片
            String imgUrls = goodsInfo.getImgUrls();

            List<String> infoImgs = Arrays.asList(imgUrls.split(","));
            if (infoImgs.size() > 19) {
                infoImgs = infoImgs.subList(0, 19);
            }
            if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
                goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
                goodsPublishImageDtosList.add(goodsPublishImageDto);
            } else {
                for (String img : infoImgs) {
                    boolean b = true;
                    try {
                        b = sensitiveScan(img);
                    } catch (Exception e) {
                        throw new GlobalException("图片解析失败");
                    }
                    if (b) {
                        String imgUrl = img;
                        imgUrl = toCoverImg(imgUrl);
                        goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                        goodsPublishImageDto.setImageUrl(imgUrl);
                        goodsPublishImageDtosList.add(goodsPublishImageDto);
                    }
                }
            }
            goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();

            if (title.length() > 15) {
                title = title.toString().substring(0, 15);
            }
            goodsBaseInfoDto.setTitle(title);
            if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
                goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
            } else {
                goodsBaseInfoDto.setPrice("119");
            }
            goodsBaseInfoDto.setStorage(1l);
            goodsBaseInfoDto.setDescription(des);

            goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);

            goodsPublishDto.setExternalGoodsId(correspondjym);
            goodsPublishDto.setCanBargain(true);

            goodsPublishDtoList.add(goodsPublishDto);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            AlibabaJymItemExternalGoodsBatchPublishResponse rsp = null;
            AlibabaJymItemExternalGoodsBatchPublishRequest req = new AlibabaJymItemExternalGoodsBatchPublishRequest();
            req.setGoodsPublishCommand(goodsPublishCommandDto);
            try {
                rsp = client.execute(req);
            } catch (ApiException e) {
                e.printStackTrace();
            }
            log.info("交易猫请求参数:{}", JSONObject.toJSONString(goodsPublishCommandDto));
            log.info("交易猫返回参数:{}", rsp.getBody());
            if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
                AlibabaJymItemExternalGoodsBatchPublishResponse.GoodsBatchResultDto result = rsp.getResult();
                Long batchId = result.getBatchId();
                if (Objects.nonNull(batchId)) {
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 200);
                    res.put("outId", batchId);
                    return res;
                } else {
                    log.error("交易猫发布商品失败:{}", rsp.getBody());
                    HashMap<String, Object> res = new HashMap<>();
                    res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                    res.put("res", rsp.getBody());
                    res.put("msg", rsp.getBody());
                    res.put("code", 500);
                    return res;
                }
            } else {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", JSONObject.toJSONString(goodsPublishCommandDto));
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return res;
            }

        }
        // 最大对象  req.setGoodsPublishCommand()
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto goodsPublishCommandDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishCommandDto();
        // seller_account_properties goods_property_dto   卖方账号基本信息
        List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodsPropertyValueDtoList = new ArrayList<>();
        // ext_properties  goods_property_dto 游戏数据
        List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto> goodsPublishDtoList = new ArrayList<>();
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto goodsPublishDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishDto();

        String replace = UUID.randomUUID().toString().replace("-", "");
        goodsPublishCommandDto.setExternalBatchId(replace);

        //崩坏
        if (GameTypeConstant.BH_ID.equals(goodsInfo.getGameId())) {

            if (Objects.equals("米哈游", goodsInfo.getCarrierName())) {
                //"游戏帐号"
                goodsPropertyValueDtoList.add(addPropertyParam(1682314864768104L, AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                //"游戏密码"
                goodsPropertyValueDtoList.add(addPropertyParam(1682314864780107L, AESUtil.encrypt(String.valueOf(extractPwd), aesKey)));
                //"联系手机"
                goodsPropertyValueDtoList.add(addPropertyParam(1682314864998199L, AESUtil.encrypt("17737053518", aesKey)));
                //"换绑码"
                goodsPropertyValueDtoList.add(addPropertyParam(1682314865102239L, AESUtil.encrypt(extractPwd, aesKey)));

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                //开拓等级
                propertyValueDtoListArr.add(addPropertyParam(1682314864762099L, "0"));
                //开拓者性别
                propertyValueDtoListArr.add(addPropertyParam(1682314865142254L, "男"));
                //均衡等级
                propertyValueDtoListArr.add(addPropertyParam(1682314865159261L, "0"));

                if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF6().split(","), Long.class));
                    //五星角色数
                    propertyValueDtoListArr.add(addPropertyParam(1682314865165262L, String.valueOf(gameAttributes.size())));
                    //"五星角色"
                    List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                    String str = "罗刹,希儿,彦卿,白露,姬子,瓦尔特,布洛妮娅,克拉拉,杰帕德,景元,银狼";
                    List<String> list = Arrays.asList(str.split(","));
                    StringBuilder sbStr = new StringBuilder();
                    for (String s : collect) {
                        if (s.contains("星魂")) {
                            s = s.substring(3, s.length());
                        }
                        if (list.contains(s)) {
                            sbStr.append(s + ",");
                        }
                    }
                    String value = "";
                    if (sbStr.length() > 0) {
                        value = sbStr.substring(0, sbStr.length() - 1);
                        propertyValueDtoListArr.add(addPropertyParam(1682314865182270L, value));
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682314865165262L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682314865182270L, "无"));
                }
                if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF7().split(","), Long.class));
                    //"五星光锥数"
                    propertyValueDtoListArr.add(addPropertyParam(1682314865170265L, String.valueOf(gameAttributes.size())));
                    //五星光锥
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                        String str = "雨一直下,棺的回响,于夜色中,以世界之名,但战斗还未结束,制胜的瞬间,如泥酣眠,拂晓之前,无可取代的东西,时节不居,星海巡航,记一位星神的陨落,记忆的质料,银河铁道之夜";
                        List<String> list = Arrays.asList(str.split(","));
                        StringBuilder sbStr = new StringBuilder();
                        for (String s : collect) {
                            if (s.contains("叠影")) {
                                s = s.substring(3, s.length());
                            }
                            if (list.contains(s)) {
                                sbStr.append(s + ",");
                            }
                        }
                        if (sbStr.length() > 0) {
                            String value = sbStr.substring(0, sbStr.length() - 1);
                            propertyValueDtoListArr.add(addPropertyParam(1682314865376325L, value));
                        }
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682314865170265L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682314865376325L, "无"));
                }
                if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF8().split(","), Long.class));
                    List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                    //"四星角色数"
                    propertyValueDtoListArr.add(addPropertyParam(1682314865176267L, String.valueOf(gameAttributes.size())));
                    String str = "娜塔莎,素裳,驭空,三月七,丹恒,青雀,停云,黑塔,艾丝妲,希露瓦,桑博,虎克,佩拉,阿兰";
                    //四星角色
                    List<String> list = Arrays.asList(str.split(","));
                    StringBuilder sbStr = new StringBuilder();
                    for (String s : collect) {
                        if (s.contains("星魂")) {
                            s = s.substring(3, s.length());
                        }
                        if (list.contains(s)) {
                            sbStr.append(s + ",");
                        }
                    }
                    String value = "";
                    if (sbStr.length() > 0) {
                        value = sbStr.substring(0, sbStr.length() - 1);
                        propertyValueDtoListArr.add(addPropertyParam(1682314865285297L, value));
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682314865176267L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682314865285297L, "无"));
                }
                //星琼数量
                propertyValueDtoListArr.add(addPropertyParam(1682314865412339L, "0"));
                //古老梦华
                propertyValueDtoListArr.add(addPropertyParam(1682314865418341L, "0"));
                //信用点
                propertyValueDtoListArr.add(addPropertyParam(1682314865423345L, "0"));
                //"星轨通票"
                propertyValueDtoListArr.add(addPropertyParam(1682314865429346L, "0"));
                //"星轨专票"
                propertyValueDtoListArr.add(addPropertyParam(1682314865437348L, "0"));
                //"未熄的余烬""
                propertyValueDtoListArr.add(addPropertyParam(1682314865443350L, "0"));
                //"未熄的星芒"
                propertyValueDtoListArr.add(addPropertyParam(1682314865449351L, "0"));
                //"开拓力"
                propertyValueDtoListArr.add(addPropertyParam(1682314865455352L, "0"));
                //"帐号绑定"
                propertyValueDtoListArr.add(addPropertyParam(1682314865466355L, "邮箱未绑定"));
                //"是否绑定Tap"
                if (StringUtils.isNotEmpty(goodsInfo.getF1())) {
                    GameAttribute attribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF1()));
                    propertyValueDtoListArr.add(addPropertyParam(1683600023893794L, attribute.getFieldName()));
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1683600023893794L, "否"));
                }
                //""是否绑定PSN""
                propertyValueDtoListArr.add(addPropertyParam(1683600031935057L, "否"));
                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                goodsPublishDto.setSupportRetrieveCompensation(true);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                gamePropertyDto.setGameId(2000334l);
                gamePropertyDto.setPlatformId(2l);
                gamePropertyDto.setClientId(1668996646483952l);
                gamePropertyDto.setServerId(1675666728551126l);

                goodsPublishDto.setGameProperty(gamePropertyDto);
                goodsPublishDto.setSecondCategoryId(1682314864743094L);
                goodsPublishDto.setFirstCategoryId(1L);
            } else if (Objects.equals("哔哩哔哩", goodsInfo.getCarrierName())) {
                //"游戏帐号"
                goodsPropertyValueDtoList.add(addPropertyParam(1682315322093169L, AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                //"游戏密码"
                goodsPropertyValueDtoList.add(addPropertyParam(1682315322104171L, AESUtil.encrypt(String.valueOf(extractPwd), aesKey)));
                //"联系手机"
                goodsPropertyValueDtoList.add(addPropertyParam(1682315322296265L, AESUtil.encrypt("17737053518", aesKey)));
                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                //开拓等级
                propertyValueDtoListArr.add(addPropertyParam(1682315322088166L, "0"));
                //开拓者性别
                propertyValueDtoListArr.add(addPropertyParam(1682315322419337L, "男"));
                //均衡等级
                propertyValueDtoListArr.add(addPropertyParam(1682315322434346L, "0"));

                if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF6().split(","), Long.class));
                    //五星角色数
                    propertyValueDtoListArr.add(addPropertyParam(1682315322441347L, String.valueOf(gameAttributes.size())));
                    //"五星角色"
                    List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                    String str = "罗刹,希儿,彦卿,白露,姬子,瓦尔特,布洛妮娅,克拉拉,杰帕德,景元,银狼";
                    List<String> list = Arrays.asList(str.split(","));
                    StringBuilder sbStr = new StringBuilder();
                    for (String s : collect) {
                        if (s.contains("星魂")) {
                            s = s.substring(3, s.length());
                        }
                        if (list.contains(s)) {
                            sbStr.append(s + ",");
                        }
                    }
                    String value = "";
                    if (sbStr.length() > 0) {
                        value = sbStr.substring(0, sbStr.length() - 1);
                        propertyValueDtoListArr.add(addPropertyParam(1682315322457358L, value));
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682315322441347L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682315322457358L, "无"));
                }
                if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF7().split(","), Long.class));
                    //"五星光锥数"
                    propertyValueDtoListArr.add(addPropertyParam(1682315322447351L, String.valueOf(gameAttributes.size())));
                    //五星光锥
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                        String str = "雨一直下,棺的回响,于夜色中,以世界之名,但战斗还未结束,制胜的瞬间,如泥酣眠,拂晓之前,无可取代的东西,时节不居,星海巡航,记一位星神的陨落,记忆的质料,银河铁道之夜";
                        List<String> list = Arrays.asList(str.split(","));
                        StringBuilder sbStr = new StringBuilder();
                        for (String s : collect) {
                            if (s.contains("叠影")) {
                                s = s.substring(3, s.length());
                            }
                            if (list.contains(s)) {
                                sbStr.append(s + ",");
                            }
                        }
                        String value = "";
                        if (sbStr.length() > 0) {
                            value = sbStr.substring(0, sbStr.length() - 1);
                            propertyValueDtoListArr.add(addPropertyParam(1682315322602441L, value));
                        }
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682315322447351L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682315322602441L, "无"));
                }
                if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                    List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfo.getF7().split(","), Long.class));
                    List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                    //"四星角色数"
                    propertyValueDtoListArr.add(addPropertyParam(1682315322451356L, String.valueOf(gameAttributes.size())));
                    String str = "娜塔莎,素裳,驭空,三月七,丹恒,青雀,停云,黑塔,艾丝妲,希露瓦,桑博,虎克,佩拉,阿兰";
                    //四星角色
                    List<String> list = Arrays.asList(str.split(","));
                    StringBuilder sbStr = new StringBuilder();
                    for (String s : collect) {
                        if (s.contains("星魂")) {
                            s = s.substring(3, s.length());
                        }
                        if (list.contains(s)) {
                            sbStr.append(s + ",");
                        }
                    }
                    String value = "";
                    if (sbStr.length() > 0) {
                        value = sbStr.substring(0, sbStr.length() - 1);
                        propertyValueDtoListArr.add(addPropertyParam(1682315322518410L, value));
                    }
                } else {
                    propertyValueDtoListArr.add(addPropertyParam(1682315322451356L, "0"));
                    propertyValueDtoListArr.add(addPropertyParam(1682315322518410L, "无"));
                }
                //星琼数量
                propertyValueDtoListArr.add(addPropertyParam(1682315322632456L, "0"));
                //古老梦华
                propertyValueDtoListArr.add(addPropertyParam(1682315322637457L, "0"));
                //信用点
                propertyValueDtoListArr.add(addPropertyParam(1682315322643459L, "0"));
                //"星轨通票"
                propertyValueDtoListArr.add(addPropertyParam(1682315322649462L, "0"));
                //"星轨专票"
                propertyValueDtoListArr.add(addPropertyParam(1682315322655466L, "0"));
                //"未熄的余烬""
                propertyValueDtoListArr.add(addPropertyParam(1682315322661467L, "0"));
                //"未熄的星芒"
                propertyValueDtoListArr.add(addPropertyParam(1682315322666469L, "0"));
                //"开拓力"
                propertyValueDtoListArr.add(addPropertyParam(1682315322672472L, "0"));
                //"帐号绑定"
                propertyValueDtoListArr.add(addPropertyParam(1682315322683479L, "邮箱不出售"));

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                goodsPublishDto.setSupportRetrieveCompensation(true);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                gamePropertyDto.setGameId(2000334l);
                gamePropertyDto.setPlatformId(2l);
                gamePropertyDto.setClientId(1470047035887265l);
                gamePropertyDto.setServerId(1675666728551126l);

                goodsPublishDto.setGameProperty(gamePropertyDto);
                goodsPublishDto.setSecondCategoryId(1682315322071158L);
                goodsPublishDto.setFirstCategoryId(1L);
            }
        }
        //枪战王者
        if (GameTypeConstant.CFMOBILEID.equals(goodsInfo.getGameId())) {
            if (StringUtils.isNotEmpty(goodsInfo.getTitle())) {
                if (goodsInfo.getTitle().length() > 15) {
                    title = goodsInfo.getTitle().substring(0, 15);
                } else {
                    title = goodsInfo.getTitle();
                }
            } else {
                title = goodsInfo.getF20() + "传说" + goodsInfo.getF18() + "神话" + goodsInfo.getF19() + "限定" + goodsInfo.getF18() + "终极";
            }
            //获取服务器id信息
            Map<String, Long> map = GameJYMKeyUtil.qzwzMapIds(goodsInfo.getSystemName() + goodsInfo.getCarrierName());
            if (StringUtils.equals(goodsInfo.getCarrierName(), "QQ")) {
                if (map != null && CollectionUtils.isNotEmpty(map.keySet())) {
                    //"游戏帐号"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountName"), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                    //"游戏密码"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountPsw"), AESUtil.encrypt(String.valueOf(extractPwd), aesKey)));
                    // 手机号码
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("phoneId"), AESUtil.encrypt("17737053518", aesKey)));

                    goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
                    goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

                    List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                    //VIP等级
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        GameAttribute attribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF2()));
                        String vip = attribute.getFieldName().replaceAll("V", "").replace("无","1");
                        propertyValueDtoListArr.add(addPropertyParam(map.get("vipId"), vip));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("vipId"), "1"));
                    }
                    //王者武器总数量
                    propertyValueDtoListArr.add(addPropertyParam(map.get("VqCount"), StringUtils.isNotEmpty(goodsInfo.getF4()) ? goodsInfo.getF4() : "0"));
                    //英雄武器数量
                    propertyValueDtoListArr.add(addPropertyParam(map.get("yxwqCount"), StringUtils.isNotEmpty(goodsInfo.getF5()) ? goodsInfo.getF5() : "0"));
                    //所有武器都给他找出来 有毛病
                    String wq = "AK47-无影,AK47-火麟,王者之心,AK47-麒麟,AK47-黑武士,AK47-黑武士觉醒,AK47-沙漠领主,AK47-牡丹精灵,AK47-角斗士,AK47-耀金伯爵,AK47-游骑兵,AK47-玉麒麟,AK47-冰魂,AK47-冰魂觉醒,王者之影,AK47-Rush-星速,AK47-常胜,AK47-英朗,王者之翼,AK47-樱斗士-一觉,AK47-樱斗士-二觉,AK47-樱斗士-超觉,AK47-竞技战魂,AK47-机械迷城,AK47-无影-葵,AK47-变色龙,AK47-亚龙,AK47-天使,AK47-孟德,AK47-幸运日觉醒,AK47-泰坦破坏者Ⅲ,AK47-混世魔王,AK47-猩红传说,AK47-沙漠郡主-一觉,AK47-沙漠郡主-二觉,AK47-沙漠郡主-超觉,AK47-竞界荣光,王者之城,AK47-燎天净火,AK47-雷麒麟,AK47-心动次元,AK47-心动次元觉醒,AK47-雷暴,AK47-奉先,AK47-血武士,AK47-波塞冬,AK47-策,AK47-春雅,AK47-春雅觉醒,M4A1-雷神,M4A1-黑骑士,王者之魄,M4A1-黑龙,M4A1-死神,M4A1-天使,M4A1-K,M4A1-游骑兵,王者之魄-冠军珍藏,M4A1-沙漠领主,M4A1-枪娘,M4A1-君威GS,M4A1-武圣,M4A1-卧龙觉醒,M4A1-卧龙,M4A1-竞技战魂,M4A1-星象,M4A1-樱龙·一觉,M4A1-樱龙·二觉,M4A1-樱龙·超觉,王者之戮,M4A1-Rush-夜袭,M4A1-变色龙,M4A1-威侯,M4A1-雷神-萝拉,王者之武,M4A1-龙血,M4A1-仲达,王者之势,M4A1-竞界荣光,M4A1-七色宝葫,M4A1-机械迷城,M4A1-赛博雷神,激光毁灭者Ⅲ,M4A1-雷霆,M4A1-海骑士,M4A1-冰锋觉醒,王者之圣,M4A1-黑龙钰-子涵,M4A1-哈迪斯,M4A1-猎神,QBZ95-天使,QBZ95-幻兽,SCAR-幽暗骑士,SCAR-幽暗骑士觉醒,SCAR-文远,SCAR-探星者,剑齿虎,AN94-超新星,剑齿虎-炫彩,AN94-卷帘大将军,AUG-机械纪元,9A91-死神,9A91-游骑兵,M14EBR-暗夜,M14EBR-暗夜觉醒,M14EBR-天神,AK12-天启,QBZ03-湮灭,QBZ03-金色蔷薇,HK416-混世行者,81式-机械纪元,81式-瑜,81式-光明之神,QBZ19-天使,G36-机械纪元,G36-竞技战魂,MK47-机械纪元,MK47-云舞,MK47-仁德,SKS-美杜莎,AWM-天龙,AWM-赛博时代,AWM-游骑兵,王者之力,AWM-妙才,AWM-竞界荣光,AWM-裁决,巴雷特-毁灭,巴雷特-极光,巴雷特-雷神,巴雷特-枪娘,王者之怒,巴雷特-定军,王者之光,巴雷特-金色蔷薇,巴雷特-安琪拉,巴雷特-毁灭-审判者,巴雷特-变色龙,巴雷特-坦克堡垒,巴雷特-雷霆,王者之掣,暗杀星,暗杀神,M200-幻神,M200-心动次元,M200-心动次元觉醒,王者幻神,09式狙-天神,09式狙-幻兽,王者之神,98K-黑骑士,98K-血月,MR1-龙吟惊沧海,TAC-天使,TAC-慈,RPK-盘龙,RPK-赤炎盘龙,RPK-美杜莎,MG3-雏凤,加特林-堡垒,加特林-炼狱,加特林-堡垒觉醒,加特林-蟒蛇,刘易斯-血月,刘易斯-星际方舟觉醒,MG36-黑骑士,MK5-机械纪元,MK5-极光,汤姆逊-烈龙,寒霜烈龙,王者之烈,双持斯泰尔-天使,斯泰尔-恶魔,斯泰尔-幻兽,斯泰尔-蝴蝶,王者之蝶,QCW05-未来战士,QCW05-死神,A180-地狱凤凰,CZS2-善财童子,CZS2-心动次元,CZS2-心动次元觉醒,M12S-雷霆,M12S-枪娘,地狱火,黑龙魂,嗜血金鲨,地狱烈炎,地狱烈樱·一觉,地狱烈樱·二觉,地狱烈樱·超觉,AA12-竞界荣光,AA12-雷神,亡命之徒-幻兽,KSG-黑骑士,KSG-天蓬元帅,KSG-火力竞放,KSG-火力竞放觉醒,贝雷塔-力拔山河,USP-神罚,USP-雷暴,USP-仁德,沙鹰-修罗,沙鹰-飞电,沙鹰-火麒麟,王者之魂,沙鹰-天神,沙鹰-无影,王者之灵,沙鹰-游骑兵,沙鹰-定军,沙鹰-幻兽,气手枪-炼狱,双持沙鹰-变色龙,双持沙鹰-亚龙,王者之电,消音沙鹰-牛魔王,沙鹰-竞技战魂,沙鹰-明目达聪,沙鹰-孟德,双持沙鹰-金银双煞,沙鹰-波塞冬,沙鹰-冰锋觉醒,消音毛瑟-常胜,左轮-黑武士,左轮-黑武士觉醒,王者之轮,蟒蛇-妙才,左轮-竞界荣光,左轮-慈,蟒蛇-火力竞放,蟒蛇-火力竞放觉醒,GLOCK18-武圣,改装GLOCK-黑龙,王者之迹,COP357-雷神,COP357-星象,COP357-雷霆,QSZ92-金色蔷薇,QSZ92-天使,双管猎枪-黑骑士,双管猎枪-威侯,双管猎枪-哈迪斯,CZ75-死神,MK23-机械纪元,MK23-瑜,MK23-幻神,弑魔者,激光短刃-黑骑士,女皇利刃-幻兽,白骨利刃,赤血刀,墨刃-幻神,雌雄双股剑,龙啸,神罚战斧,战斧-无影,王者之啸,血阳,手斧-竞技战魂,镰刀-哈迪斯,屠龙,尼泊尔-火麒麟,王者之锋,血月,尼泊尔-星象,双持尼泊尔-变色龙,双持尼泊尔-亚龙,尼泊尔-机械纪元,尼泊尔-竞界荣光,尼泊尔-铜头铁臂,尼泊尔-雷霆,尼泊尔-冰锋觉醒,麒麟刺,星芒,黑龙刺,王者之刺,耀金雷刃,马来剑-毁灭,斩魔剑-天使,黄沙残魂剑,丈八蛇矛,虎头湛金枪,龙胆亮银枪,公瑾佩剑,擎天,擎天觉醒,王者之击,铁锹-游骑兵,铁锹-孟德,雷霆,雷神之怒-觉醒,虚空之槌-妙才,双截棍-金色蔷薇,双截棍-天使,丛林匕首-死神,丛林匕首-火力竞放,丛林匕首-火力竞放觉醒,斩神刀,斩魔刀,青龙偃月刀,斩神刀-雷暴,王者之痕,牛魔小巨兽,夺魂,死神手雷,火麒麟手雷,黑武士手雷,王者之影手雷,燃烧弹-游骑兵,王者之翼手雷,幻兽手雷,王者之心手雷,黑骑士手雷,机械纪元手雷,王者之势手雷,竞技战魂手雷,手雷-竞界荣光,手雷-芦里乾坤,高爆手雷-雷暴,高爆手雷-雷霆,王者之圣手雷,死神闪光弹,火麒麟闪光弹,黑武士闪光弹,王者之影闪光弹,闪光弹-游骑兵,王者之翼闪光弹,幻兽闪光弹,王者之心闪光弹,黑骑士闪光弹,机械纪元闪光弹,王者之势闪光弹,竞技战魂闪光弹,闪光弹-竞界荣光,闪光弹-惊涛骇浪,闪光弹-雷暴,闪光弹-雷霆,王者之圣闪光弹,死神烟雾弹,火麒麟烟雾弹,黑武士烟雾弹,王者之影烟雾弹,烟雾弹-游骑兵,王者之翼烟雾弹,幻兽烟雾弹,王者之心烟雾弹,黑骑士烟雾弹,机械纪元烟雾弹,王者之势烟雾弹,竞技战魂烟雾弹,烟雾弹-竞界荣光,烟雾弹-匿影遁形,烟雾弹-雷暴,烟雾弹-雷霆,王者之圣烟雾弹,9A91-天神,柯尔特-仲达,百战巾帼枪,王者之狱,王者之兽闪光弹,王者之兽手雷,王者之兽烟雾弹,王者之隐,丛林匕首-庆龙觉醒,方天画戟,蝴蝶刀-极光,甲骨利斧,雷霆权杖-宙斯,龙啸-堕天神,AK47-风神翼龙,沙鹰-修罗-铁骑,AK47-黑鲨,双持柯尔特-极光,迷你究极泰坦,AK47-华夏传说,AK47-火麒麟-灵狐,麒麟刺-堕天神,穷奇铁扇,拳魔小巨兽,三叉戟-波塞冬,手斧-机械迷城,COP357-堕天神,双脊龙趾,唐刀-大唐荣耀,唐刀-华夏传说,COP357-旗袍,AK47-木兰,GLOCK18-宙斯,MAC-10-风神翼龙,AK47-死神,王者之仞,刘易斯-天使,加特林-星际战舰,AWM-天使,AWM-天龙-曼陀罗,GM6-战争风云觉醒,SR25-燃烧泰坦,TAC-雷暴,TAC-晴舞,巴雷特-冬灭觉醒,巴雷特-冬灭,巴雷特-极光-运动宝贝兰,P90-双脊龙,P90-突突兔觉醒,QCW05-竞界荣光,KSG-天使,VEPR12-宙斯,毁灭征服者-超越Max,MK23-双脊龙,USP-机械迷城,翼龙刺,分裂雷-天使,闪光弹-天使,烟雾弹-天使,高爆手雷-虎牙,高爆手雷-堕天神,闪光弹-堕天神,烟雾弹-堕天神,AK47-幸运日,M4A1-堕天神,M4A1-雷暴,M4A1-玫瑰精灵,M4A1-破空冰刃,M4A1-心动次元,M4A1-心动次元觉醒,M4A1-游骑兵-香香,M4A1-运输船,QBZ03-死神,QBZ03-枪娘,M4A1-千变,M4A1-夏清觉醒,王者之兽,王者之腾,王者之翎,王者之启,蟒蛇-奉先,沙鹰-幻能天神,改装GLOCK-木兰";
                    Set<String> sbSet = new HashSet<>();
                    //热门武器
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF7());
                    wqAll = reIds(wqAll, goodsInfo.getF11());
                    wqAll = reIds(wqAll, goodsInfo.getF12());
                    wqAll = reIds(wqAll, goodsInfo.getF13());
                    StringBuilder sb = new StringBuilder("");
                    if (StringUtils.isNotEmpty(wqAll)) {
                        List<GameAttribute> gameAttributesss = getGameAttributs(wqAll);
                        if (CollectionUtils.isNotEmpty(gameAttributesss)) {
                            List<String> list = Arrays.asList(wq.split(","));
                            for (GameAttribute attributesss : gameAttributesss) {
                                if (list.contains(attributesss.getFieldName())) {
//                                    sb.append("," + attributesss.getFieldName());
                                    sbSet.add(attributesss.getFieldName());
                                }
                            }
                        }
                    }
                    //武器
                    if (CollectionUtils.isNotEmpty(sbSet)) {
                        String s = String.join(",", sbSet);
                        propertyValueDtoListArr.add(addPropertyParam(map.get("VqGuns"), s));
                    }

                    //人物角色
                    if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                        String rwjs = "[{\"id\":1709023367676716,\"name\":\"甄梦\",\"value\":\"甄梦\"},{\"id\":1709023367679720,\"name\":\"斯薇特-X\",\"value\":\"斯薇特-X\"},{\"id\":1709023367680724,\"name\":\"月神-X\",\"value\":\"月神-X\"},{\"id\":1709023367682727,\"name\":\"萝拉-X\",\"value\":\"萝拉-X\"},{\"id\":1709023367685730,\"name\":\"英雄兰-X\",\"value\":\"英雄兰-X\"},{\"id\":1709023367686733,\"name\":\"香香-X\",\"value\":\"香香-X\"},{\"id\":1709023367689735,\"name\":\"关小雨-X\",\"value\":\"关小雨-X\"},{\"id\":1709023367691738,\"name\":\"蝉\",\"value\":\"蝉\"},{\"id\":1709023367694740,\"name\":\"妩媚妖姬\",\"value\":\"妩媚妖姬\"},{\"id\":1709023367695743,\"name\":\"曼陀罗09-X\",\"value\":\"曼陀罗09-X\"},{\"id\":1709023367698745,\"name\":\"零-水下丽影\",\"value\":\"零-水下丽影\"},{\"id\":1709023367699749,\"name\":\"雅典娜\",\"value\":\"雅典娜\"},{\"id\":1709023367701753,\"name\":\"职场灵狐-赛事经理\",\"value\":\"职场灵狐-赛事经理\"},{\"id\":1709023367704757,\"name\":\"岚兮儿\",\"value\":\"岚兮儿\"},{\"id\":1709023367707760,\"name\":\"春\",\"value\":\"春\"},{\"id\":1709023367709762,\"name\":\"乔月\",\"value\":\"乔月\"},{\"id\":1709023367711764,\"name\":\"晴雅\",\"value\":\"晴雅\"},{\"id\":1709023367713767,\"name\":\"雾萌萌\",\"value\":\"雾萌萌\"},{\"id\":1709023367716770,\"name\":\"雨墨\",\"value\":\"雨墨\"},{\"id\":1709023367717774,\"name\":\"王者-零\",\"value\":\"王者-零\"},{\"id\":1709023367721777,\"name\":\"云悠悠\",\"value\":\"云悠悠\"},{\"id\":1709023367723781,\"name\":\"傲骨\",\"value\":\"傲骨\"},{\"id\":1709023367726783,\"name\":\"蝴蝶\",\"value\":\"蝴蝶\"},{\"id\":1709023367726786,\"name\":\"关小雨\",\"value\":\"关小雨\"},{\"id\":1709023367729789,\"name\":\"子涵\",\"value\":\"子涵\"},{\"id\":1709023367731793,\"name\":\"英雄兰\",\"value\":\"英雄兰\"},{\"id\":1709023367734797,\"name\":\"瞳\",\"value\":\"瞳\"},{\"id\":1709023367735799,\"name\":\"香香\",\"value\":\"香香\"},{\"id\":1709023367738801,\"name\":\"樱\",\"value\":\"樱\"},{\"id\":1709023367740802,\"name\":\"幽灵刀锋-觉醒\",\"value\":\"幽灵刀锋-觉醒\"},{\"id\":1709023367741804,\"name\":\"孤狼\",\"value\":\"孤狼\"},{\"id\":1709023367744807,\"name\":\"龙野\",\"value\":\"龙野\"},{\"id\":1709023367747809,\"name\":\"葵\",\"value\":\"葵\"},{\"id\":1709023367750811,\"name\":\"萝拉\",\"value\":\"萝拉\"},{\"id\":1709023367752817,\"name\":\"零\",\"value\":\"零\"},{\"id\":1709023367753821,\"name\":\"审判者\",\"value\":\"审判者\"},{\"id\":1709023367754823,\"name\":\"九尾狐\",\"value\":\"九尾狐\"},{\"id\":1709023367757826,\"name\":\"孤狼-X\",\"value\":\"孤狼-X\"},{\"id\":1709023367760827,\"name\":\"樱-X\",\"value\":\"樱-X\"},{\"id\":1709023367762831,\"name\":\"木兰-X\",\"value\":\"木兰-X\"},{\"id\":1709023367765834,\"name\":\"夏日灵狐-X\",\"value\":\"夏日灵狐-X\"},{\"id\":1709023367767836,\"name\":\"春节兰-X\",\"value\":\"春节兰-X\"},{\"id\":1709023367769838,\"name\":\"蔡文昭\",\"value\":\"蔡文昭\"}]\n";
                        JSONArray jsonArray = JSONArray.parseArray(rwjs);
                        List<GameAttribute> gameAttributs = getGameAttributs(goodsInfo.getF8());
                        String roles = "";
                        for(GameAttribute gameAttribute : gameAttributs){
                            for(Object s : jsonArray){
                                if(JSONObject.parseObject(s.toString()).getString("name").equals(gameAttribute.getFieldName())){
                                    roles+=","+JSONObject.parseObject(s.toString()).getString("name");
                                }
                            }
                        }
                        if (StringUtils.isNotEmpty(roles)) {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("roles"), roles.substring(1)));
                            int roleCount = Arrays.asList(roles.substring(1).split(",")).size();
                            propertyValueDtoListArr.add(addPropertyParam(map.get("roleCount"), String.valueOf(roleCount)));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("roleCount"), "0"));
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("roleCount"), "0"));
                    }
                    if (StringUtils.isNotEmpty(goodsInfo.getF10())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF10()));
                        if (gameAttribute1.getFieldName().equals("有修改人脸机会/实名是本人")) {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("shiming"), "可二次实名"));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("shiming"), "不可二次实名"));
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("shiming"), "可二次实名"));
                    }
                    propertyValueDtoListArr.add(addPropertyParam(map.get("whCount"), "0"));
                    propertyValueDtoListArr.add(addPropertyParam(map.get("duanwei"), "新锐"));
                    propertyValueDtoListArr.add(addPropertyParam(map.get("erji"), "wenkefu"));
                    propertyValueDtoListArr.add(addPropertyParam(map.get("VCount"), "1"));

                    goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                    goodsPublishDto.setSupportRetrieveCompensation(true);

                    AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                    gamePropertyDto.setGameId(map.get("gameId"));
                    gamePropertyDto.setPlatformId(map.get("plaformId"));
                    gamePropertyDto.setClientId(map.get("clientId"));
                    gamePropertyDto.setServerId(map.get("serviceId"));

                    goodsPublishDto.setGameProperty(gamePropertyDto);
                    goodsPublishDto.setSecondCategoryId(map.get("secondCategoryId"));
                    goodsPublishDto.setFirstCategoryId(1L);
                }
            } else {
                if (map != null && CollectionUtils.isNotEmpty(map.keySet())) {
                    //"游戏帐号"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountName"), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                    //"游戏密码"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountPsw"), AESUtil.encrypt(String.valueOf(extractPwd), aesKey)));
                    //"角色名称"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountNick"), AESUtil.encrypt("问客服", aesKey)));
                    //"二级"
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("towId"), AESUtil.encrypt(extractPwd, aesKey)));
                    // 手机号码
                    goodsPropertyValueDtoList.add(addPropertyParam(map.get("phoneId"), AESUtil.encrypt("17737053518", aesKey)));

                    goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
                    goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

                    List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                    //角色等级
                    propertyValueDtoListArr.add(addPropertyParam(map.get("roleLvId"), StringUtils.isEmpty(goodsInfo.getF1()) ? "1" : goodsInfo.getF1()));
                    //VIP等级
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        GameAttribute attribute = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF2()));
                        String vip = attribute.getFieldName().replaceAll("V", "");
                        propertyValueDtoListArr.add(addPropertyParam(map.get("vipId"), vip));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("vipId"), "1"));
                    }
                    //V总数量
                    if (StringUtils.isNotEmpty(goodsInfo.getF4())) {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("VqCount"), goodsInfo.getF4()));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(map.get("VqCount"), "0"));
                    }
                    //热门武器
                    if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                        String rmwq = GameDetailConstant.QZWZ_RMWQ;
                        String builder = getPropertyParams(rmwq, goodsInfo.getF7());
                        if (StringUtils.isNotEmpty(builder)) {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("VqGuns"), builder));
                        }
                    }
                    //人物角色
                    if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                        String rwjs = "[{\"id\":1709023367676716,\"name\":\"甄梦\",\"value\":\"甄梦\"},{\"id\":1709023367679720,\"name\":\"斯薇特-X\",\"value\":\"斯薇特-X\"},{\"id\":1709023367680724,\"name\":\"月神-X\",\"value\":\"月神-X\"},{\"id\":1709023367682727,\"name\":\"萝拉-X\",\"value\":\"萝拉-X\"},{\"id\":1709023367685730,\"name\":\"英雄兰-X\",\"value\":\"英雄兰-X\"},{\"id\":1709023367686733,\"name\":\"香香-X\",\"value\":\"香香-X\"},{\"id\":1709023367689735,\"name\":\"关小雨-X\",\"value\":\"关小雨-X\"},{\"id\":1709023367691738,\"name\":\"蝉\",\"value\":\"蝉\"},{\"id\":1709023367694740,\"name\":\"妩媚妖姬\",\"value\":\"妩媚妖姬\"},{\"id\":1709023367695743,\"name\":\"曼陀罗09-X\",\"value\":\"曼陀罗09-X\"},{\"id\":1709023367698745,\"name\":\"零-水下丽影\",\"value\":\"零-水下丽影\"},{\"id\":1709023367699749,\"name\":\"雅典娜\",\"value\":\"雅典娜\"},{\"id\":1709023367701753,\"name\":\"职场灵狐-赛事经理\",\"value\":\"职场灵狐-赛事经理\"},{\"id\":1709023367704757,\"name\":\"岚兮儿\",\"value\":\"岚兮儿\"},{\"id\":1709023367707760,\"name\":\"春\",\"value\":\"春\"},{\"id\":1709023367709762,\"name\":\"乔月\",\"value\":\"乔月\"},{\"id\":1709023367711764,\"name\":\"晴雅\",\"value\":\"晴雅\"},{\"id\":1709023367713767,\"name\":\"雾萌萌\",\"value\":\"雾萌萌\"},{\"id\":1709023367716770,\"name\":\"雨墨\",\"value\":\"雨墨\"},{\"id\":1709023367717774,\"name\":\"王者-零\",\"value\":\"王者-零\"},{\"id\":1709023367721777,\"name\":\"云悠悠\",\"value\":\"云悠悠\"},{\"id\":1709023367723781,\"name\":\"傲骨\",\"value\":\"傲骨\"},{\"id\":1709023367726783,\"name\":\"蝴蝶\",\"value\":\"蝴蝶\"},{\"id\":1709023367726786,\"name\":\"关小雨\",\"value\":\"关小雨\"},{\"id\":1709023367729789,\"name\":\"子涵\",\"value\":\"子涵\"},{\"id\":1709023367731793,\"name\":\"英雄兰\",\"value\":\"英雄兰\"},{\"id\":1709023367734797,\"name\":\"瞳\",\"value\":\"瞳\"},{\"id\":1709023367735799,\"name\":\"香香\",\"value\":\"香香\"},{\"id\":1709023367738801,\"name\":\"樱\",\"value\":\"樱\"},{\"id\":1709023367740802,\"name\":\"幽灵刀锋-觉醒\",\"value\":\"幽灵刀锋-觉醒\"},{\"id\":1709023367741804,\"name\":\"孤狼\",\"value\":\"孤狼\"},{\"id\":1709023367744807,\"name\":\"龙野\",\"value\":\"龙野\"},{\"id\":1709023367747809,\"name\":\"葵\",\"value\":\"葵\"},{\"id\":1709023367750811,\"name\":\"萝拉\",\"value\":\"萝拉\"},{\"id\":1709023367752817,\"name\":\"零\",\"value\":\"零\"},{\"id\":1709023367753821,\"name\":\"审判者\",\"value\":\"审判者\"},{\"id\":1709023367754823,\"name\":\"九尾狐\",\"value\":\"九尾狐\"},{\"id\":1709023367757826,\"name\":\"孤狼-X\",\"value\":\"孤狼-X\"},{\"id\":1709023367760827,\"name\":\"樱-X\",\"value\":\"樱-X\"},{\"id\":1709023367762831,\"name\":\"木兰-X\",\"value\":\"木兰-X\"},{\"id\":1709023367765834,\"name\":\"夏日灵狐-X\",\"value\":\"夏日灵狐-X\"},{\"id\":1709023367767836,\"name\":\"春节兰-X\",\"value\":\"春节兰-X\"},{\"id\":1709023367769838,\"name\":\"蔡文昭\",\"value\":\"蔡文昭\"}]\n";
                        JSONArray jsonArray = JSONArray.parseArray(rwjs);
                        List<GameAttribute> gameAttributs = getGameAttributs(goodsInfo.getF8());
                        String roles = "";
                        for(GameAttribute gameAttribute : gameAttributs){
                            for(Object s : jsonArray){
                                if(JSONObject.parseObject(s.toString()).getString("name").equals(gameAttribute.getFieldName())){
                                    roles+=","+JSONObject.parseObject(s.toString()).getString("name");
                                }
                            }
                        }
                        if (StringUtils.isNotEmpty(roles)) {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("roleIds"), roles));
                        }
                    }
                    //至尊系列
                    if (StringUtils.isNotEmpty(goodsInfo.getF12())) {
                        String zzxl = GameDetailConstant.QZWZ_ZZXL;
                        String builder = getPropertyParams(zzxl, goodsInfo.getF12());
                    }
                    //王者系列
                    if (StringUtils.isNotEmpty(goodsInfo.getF13())) {
                        String wzxl = GameDetailConstant.QZWZ_WZXL;
                        String builder = getPropertyParams(wzxl, goodsInfo.getF13());
                        if (StringUtils.isNotEmpty(builder)) {
                            propertyValueDtoListArr.add(addPropertyParam(map.get("wzxlId"), builder));
                        }
                    }
                    goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                    goodsPublishDto.setSupportRetrieveCompensation(true);

                    AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                    gamePropertyDto.setGameId(map.get("gameId"));
                    gamePropertyDto.setPlatformId(map.get("plaformId"));
                    gamePropertyDto.setClientId(map.get("clientId"));
                    gamePropertyDto.setServerId(map.get("serviceId"));

                    goodsPublishDto.setGameProperty(gamePropertyDto);
                    goodsPublishDto.setSecondCategoryId(map.get("secondCategoryId"));
                    goodsPublishDto.setFirstCategoryId(1L);
                }
            }
        }
        //三国杀
        if (goodsInfo.getGameName().contains("三国杀")) {
            //获取服务器id信息  官阶  1神将  1史诗   1将魂
            Map<String, Long> map = GameJYMKeyUtil.sgsMapIds();
            if (map != null && CollectionUtils.isNotEmpty(map.keySet())) {
                //"游戏帐号"
                goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountName"), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                //"游戏密码"
                goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountPsw"), AESUtil.encrypt(String.valueOf(extractPwd), aesKey)));
                //"角色名称"
                goodsPropertyValueDtoList.add(addPropertyParam(map.get("accountNick"), AESUtil.encrypt("问客服", aesKey)));
                // 手机号码
                goodsPropertyValueDtoList.add(addPropertyParam(map.get("phoneId"), AESUtil.encrypt("17737053518", aesKey)));

                goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
                goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

                List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
                //角色等级
                propertyValueDtoListArr.add(addPropertyParam(map.get("roleLvId"), StringUtils.isEmpty(goodsInfo.getF1()) ? "1" : goodsInfo.getF1()));
                //VIP等级
                propertyValueDtoListArr.add(addPropertyParam(map.get("vipId"), StringUtils.isEmpty(goodsInfo.getF2()) ? "1" : goodsInfo.getF2()));
                //官阶
                String guanjie = "大元帅,大将军,骠骑将军,领军将军,中军将军,先锋及以下";
                String param = getPropertyParam(guanjie, goodsInfo.getF10());
                propertyValueDtoListArr.add(addPropertyParam(map.get("guanJie"), param));
                //神将
                String shenjiang = "神吕蒙,神周瑜,神赵云,神关羽,神诸葛亮,神曹操,神吕布,神司马懿,神陆逊,神刘备,神甘宁,神张辽,神郭嘉,神太史慈,神孙策,神荀彧";
                String param0 = getPropertyParam(shenjiang, goodsInfo.getF9());
                propertyValueDtoListArr.add(addPropertyParam(map.get("shenJiang"), param0));
                //动态皮肤
                String dongtaiPF = "逐鹿天下·曹操,兔年春节·曹婴,驱虎吞狼·荀彧,冠绝天下·SP蔡文姬,能工巧匠·马钧,雪中舞刃·张春华,水清濯缨·曹婴,雄吞天下·曹操,虎年春节·曹纯,竭战鳞伤·曹昂,虎年春节·曹真,虎啸生风·许褚,虎啸生风·界许褚,牛年立冬·司马懿,鹰视狼顾·司马懿,牛年立冬·界司马懿,鹰视狼顾·界司马懿,牛年清明·甄姬,牛年清明·界甄姬,洛水神韵·界甄姬,洛水神韵·甄姬,登锋陷阵·张辽,登锋陷阵·界张辽,十胜十败·郭嘉,十胜十败·界郭嘉,猪年端午·曹丕,牛年清明·曹丕,猪年端午·界曹丕,牛年清明·界曹丕,神兵天降·邓艾,神兵天降·界邓艾,威严毅重·于禁,威严毅重·界于禁,背水一战·张郃,独秉固志·王基,鼠年端午·曹植,鼠年端午·界曹植,牛年立冬·张春华,宣穆夜袭·张春华,轻燕掠影·王异,轻燕掠影·界王异,谋谟之勋·钟会,谋谟之勋·界钟会,猪年春节·曹冲,五陵英少·曹冲,稳定关右·钟繇,鼠年春节·辛宪英,泰山捧日·程昱,举棋若定·戏志才,鼠年端午·杨修,锋芒毕露·曹婴,龙袭星落·王朗,长坂败备·曹纯,鼠年冬至·王元姬,鼠年冬至·司马昭,牛年中秋·羊徽瑜,牛年中秋·司马师,死守陈仓·郝昭,笔翰如流·王粲,太仓聚栗·李丰,龙跃凤鸣·卧龙诸葛,龙跃凤鸣·宠统,兔年春节·关银屏,为君担忧·甘夫人,明良千古·黄忠,临军对阵·张星彩,绵竹之殇·诸葛瞻,西凉雄狮·马超,明良千古·马超,虎年中秋·诸葛亮,明良千古·夏候氏,明良千古·赵云,明良千古·关羽,明良千古·胡金定,明良千古·马云騄,明良千古·SP孙尚香,明良千古·黄月英,星夜袭曹·马超,明良千古·刘备,明良千古·诸葛亮,明良千古·界诸葛亮,明良千古·界黄月英,星夜袭曹·界马超,明良千古·界刘备,猪年圣诞·刘备,龙骧麟振·刘备,猪年圣诞·界刘备,龙骧麟振·界刘备,啸风从龙·关羽,啸风从龙·界关羽,牛年春节·马超,牛年春节·界马超,西凉雄狮·界马超,明良千古·张飞,猪年中秋·张飞,据水断桥·张飞,猪年中秋·界张飞,据水断桥·界张飞,牛年春节·赵云,截江救主·赵云,牛年春节·界赵云,截江救主·界赵云,虎年中秋·黄月英,鼠年春节·黄月英,木牛流马·黄月英,鼠年春节·界黄月英,木牛流马·界黄月英,麒麟生角·魏延,麒麟生角·界魏延,猪年端午·刘禅,猪年端午·界刘禅,猪年中秋·夏侯氏,冠绝天下·秦宓,猪年圣诞·SP孙尚香,鼠年中秋·关银屏,猪年大雪·马云騄,牛年春节·马云騄,花海舞枪·马云騄,猪年中秋·张星彩,猪年春节·赵襄,虎年七夕·关索,鼠年中秋·关索,虎年七夕·鲍三娘,柳娇桃艳·鲍三娘,嫣然一笑·鲍三娘,锐不可当·张翼,虎年中秋·诸葛果,仙池起舞·诸葛果,虎年端午·关银屏,虎年端午·张星彩,虎年冬至·马超,莲华熠熠·孙寒华,涤荡江东·太史慈,鸿笔丽藻·步骘,兔年清明·周瑜,兔年清明·孙策,运筹帷幄·周瑜,烈火烛天·陆逊,兔年春节·孙尚香,破军杀将·徐盛,白浪掀天·诸葛恪,冠绝天下·孙权,剑舞枫飞·朱然,鏖战赤壁·黄盖,鏖战赤壁·界黄盖,猪年端午·孙权,牛年七夕·孙权,吴王六剑·孙权,猪年端午·界孙权,牛年七夕·界孙权,吴王六剑·界孙权,星流霆击·孙尚香,星流霆击·界孙尚香,猪年圣诞·陆逊,猪年圣诞·界陆逊,猪年七夕·大乔,鼠年春分·大乔,衣垂绿川·大乔,绝世之姿·大乔,猪年七夕·界大乔,鼠年春分·界大乔,衣垂绿川·界大乔,绝世之姿·界大乔,鼠年春节·周瑜,鼠年春节·界周瑜,猪年大雪·小乔,鼠年春分·小乔,采莲江南·小乔,如花似朵·小乔,猪年大雪·界小乔,鼠年春分·界小乔,采莲江南·界小乔,如花似朵·界小乔,联刘抗曹·鲁肃,猪年七夕·孙策,长沙桓王·孙策,猪年七夕·界孙策,长沙桓王·界孙策,笼中箜响·周妃,牛年七夕·步练师,牛年七夕·界步练师,牛年端午·孙鲁班,牛年端午·界孙鲁班,琪花瑶草·徐氏,猪年春节·孙鲁育,牛年端午·孙鲁育,鱼游濠水·孙茹,花容月貌·孙茹,烟水悠悠·孙茹,破贼校尉·凌操,抗音而歌·留赞,灵魂歌王·留赞,长风破浪·凌统,长风破浪·界凌统,呼风唤雨·卑弥呼,困龙犹斗·刘协,火烧乌巢·许攸,明良千古·谋刘赪,虎年冬至·张琪瑛,忧心国事·杨彪,南华老仙·野鹤闲云,苍天已死·张宝,锦帆游侠·星甘宁,盛气凌人·界许攸,黄天当立·张角,鼠年七夕·貂蝉,绝世倾城·貂蝉,鼠年七夕·界貂蝉,绝世倾城·界貂蝉,傲睨万物·吕布,鼠年七夕·吕布,虓虎之勇·吕布,鼠年七夕·界吕布,虓虎之勇·界吕布,鸩杀少帝·李儒,鸩杀少帝·界李儒,迅雷风烈·张角,迅雷风烈·界张角,一往无前·袁绍,一往无前·界袁绍,设使鬼神·左慈,设使鬼神·界左慈,泪捻琵琶·蔡文姬,泪捻琵琶·界蔡文姬,猪年大雪·曹节,蛇蝎为心·何太后,驭魂千机·SP貂蝉,单骑救主·SP赵云,龙困于渊·刘协,猪年春节·董白,鬼渊蝶引·卑弥呼,雄踞益州·刘焉,肝胆相照·苏飞,烬灭神骇·徐荣,击鼓骂曹·祢衡,超脱于世·庞德公,肝胆相照·星甘宁,魂牵梦萦·灵雎,鼠年春节·兀突骨,盛气凌人·许攸,虎年冬至·张鲁,倚星折月·神郭嘉,霸王再世·神孙策,剑祭通天·神诸葛亮,明良千古·谋杨婉,万人辟易·神甘宁,绽焰摧枯·神陆逊,鉴往知来·神司马懿,战龙在野·神赵云,监兵噬魅·神吕布,冠绝天下·神吕布,玄天通冥·神曹操,孟章诛邪·神诸葛亮,风舞魔鸟·神诸葛亮,兼资文武·神吕蒙,焰腾麒麟·神周瑜,陵光引灵·神周瑜,虎年清明·神郭嘉,虎年清明·神荀彧";
                String param1 = getPropertyParam(dongtaiPF, goodsInfo.getF11());
                propertyValueDtoListArr.add(addPropertyParam(map.get("dongTaiPF"), param1));
                // 群雄
                String qunxiong = "华佗,貂蝉,吕布,华雄,袁术,张角,于吉,庞德,颜良文丑,袁绍,贾诩,许攸,荀谌,界华佗,界张角,界庞德,界蔡文姬,高顺,陈宫,刘表,公孙瓒,伏皇后,李儒,沮授,蔡夫人,公孙渊,界公孙瓒,界刘表,界伏皇后,伏完,张宝,SP马超,SP赵云,刘琦,董白,公孙康,纪灵,田丰,星张郃,董卓,左慈,蔡文姬,卢植,仲帝袁术,张绣,杜预,羊祜,刘璋,界吕布,界华雄,界袁术,界貂蝉,界于吉,界颜良文丑,界袁绍,界董卓,界左慈,郭图逢纪,界高顺,界李儒,刘虞,张让,曹节,蔡邕,潘凤,何太后,SP貂蝉,刘协,SP黄月英,严白虎,蹋顿,张鲁,董承,樊稠,麹义,SP太史慈,陶谦,刘繇,李傕,士燮,司马徽,审配,卑弥呼,张济,张梁,刘焉,王允,苏飞,徐荣,郭汜,丁原,陈登,张琪瑛,胡车儿,马腾,邹氏,张任,李傕郭汜,祢衡,庞德公,郑玄,星张辽,星甘宁,星徐晃,杨彪,南华老仙,灵雎,兀突骨,蜀群彭羕,魏群许攸,郑玄·新,韩遂,何进,谋杨婉,谋刘赪,谋华雄,阎圃,马元义,高览,张仲景,界蔡夫人,星黄忠,孔融,朱儁,皇甫嵩,马日磾,王濬,界沮授,裴秀";
                String param2 = getPropertyParam(qunxiong, goodsInfo.getF8());
                propertyValueDtoListArr.add(addPropertyParam(map.get("QXroleIds"), param2));
                //北魏
                String beiwei = "曹操,许褚,司马懿,夏侯惇,甄姬,张辽,郭嘉,曹仁,夏侯渊,典韦,荀彧,曹丕,邓艾,卞夫人,界曹操,界司马懿,界夏侯惇,界张辽,界夏侯渊,于禁,曹彰,王异,钟会,曹冲,郭淮,满宠,曹真,韩浩史涣,陈群,曹叡,钟繇,界于禁,界曹植,界王异,郭皇后,诸葛诞,SP关羽,SP姜维,文聘,SP贾诩,乐进,司马朗,李典,鲁芝,张恭,朱灵,徐晃,张郃,蒯越蒯良,王基,郝昭,毋丘俭,王粲,辛毗,界许褚,界郭嘉,界甄姬,界曹仁,界典韦,界荀彧,界徐晃,界曹丕,界邓艾,曹植,张春华,荀攸,曹休,界钟会,界曹彰,界满宠,界郭淮,界陈群,界曹真,孙资刘放,嵇康,辛宪英,曹昂,曹洪,SP蔡文姬,SP曹仁,SP庞德,李通,程昱,吕虔,戏志才,杨修,杜畿,陈琳,贾逵,曹婴,王朗,臧霸,魏蜀孟达,魏吴唐咨,董昭,刘晔,曹纯,马钧,王元姬,司马昭,羊徽瑜,司马师,魏蜀夏侯霸,魏群许攸,牛金,华歆,谋徐晃,谋于禁,魏吴文鸯,崔琰,王凌,袁涣,蔡贞姬,毛玠,王双,张昌蒲,阮慧,界曹休,谋曹操,曹嵩,谋曹仁,谋甄姬";
                String param3 = getPropertyParam(beiwei, goodsInfo.getF5());
                propertyValueDtoListArr.add(addPropertyParam(map.get("BWroleIds"), param3));
                //西蜀
                String xishu = "刘备,关羽,马超,张飞,赵云,黄月英,诸葛亮,黄忠,魏延,庞统,卧龙诸葛,孟获,姜维,刘禅,糜夫人,许靖,向宠,界刘备,界马超,界伊籍,法正,徐庶,关兴张苞,廖化,马岱,关平,刘封,吴懿,周仓,张松,张薿,界关兴张苞,界马岱,马良,夏侯霸,SP孙尚香,SP徐庶,张星彩,傅肜,甘夫人,蒋琬费祎,李丰,赵统赵广,祝融,严颜,王平,陈到,诸葛瞻,陈震,费祎,王甫赵累,界关羽,界张飞,界赵云,界诸葛亮,界黄月英,界黄忠,界魏延,界卧龙诸葛,界庞统,界孟获,界祝融,界姜维,界刘禅,马谡,简雍,刘谌,夏侯氏,界法正,界廖化,界简雍,界周仓,李严,黄皓,吴苋,秦宓,关银屏,糜竺,马云騄,孙乾,马忠,董允,赵襄,杨仪,关索,吕凯,沙摩柯,鲍三娘,邓芝,张翼,周群,魏蜀孟达,蜀吴糜芳傅士仁,诸葛果,胡金定,魏蜀夏侯霸,蜀吴潘濬,蜀群彭羕,谋黄忠,蒋琬,花鬘,宗预,谯周,傅佥,谋马超,蜀吴谋孙尚香,谋夏侯氏,谋张飞,刘巴,界吴懿,谋赵云,谋姜维,谋刘备";
                String param4 = getPropertyParam(xishu, goodsInfo.getF6());
                propertyValueDtoListArr.add(addPropertyParam(map.get("XSroleIds"), param4));
                //东吴
                String dongwu = "黄盖,甘宁,孙权,孙尚香,陆逊,大乔,吕蒙,周瑜,小乔,周泰,太史慈,孙坚,孙策,张昭张纮,骆统,孙邵,周处,界甘宁,界黄盖,界周瑜,界大乔,界陆逊,界孙尚香,吴国太,徐盛,步练师,程普,虞翻,孙鲁班,朱桓,顾雍,界朱然,丁奉,诸葛瑾,孙鲁育,祖茂,诸葛恪,大乔小乔,卫温诸葛直,周鲂,严畯,孙茹,凌操,鲁肃,陆绩,孙亮,陆抗,周妃,吴景,界吕蒙,界孙权,界小乔,界周泰,界孙坚,界孙策,界张昭张纮,凌统,韩当,潘璋马忠,朱然,孙休,朱治,全琮,界徐盛,界吴国太,界凌统,界韩当,界程普,界步练师,界虞翻,界潘璋马忠,界顾雍,界孙鲁班,孙登,岑昏,徐氏,薛综,贺齐,SP庞统,潘濬,步骘,吕岱,孙皓,阚泽,许贡,陈武董袭,蒋钦,吕范,蜀吴糜芳傅士仁,魏吴唐咨,留赞,蜀吴潘濬,吴景·信,孙翊,谋吕蒙,谋孙权,魏吴文鸯,张温,孙寒华,界孙休,桥公,蜀吴谋孙尚香,界全琮,谋周瑜,谋黄盖,界朱治,界朱桓";
                String param5 = getPropertyParam(dongwu, goodsInfo.getF7());
                propertyValueDtoListArr.add(addPropertyParam(map.get("DWroleIds"), param5));

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                goodsPublishDto.setSupportRetrieveCompensation(true);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                gamePropertyDto.setGameId(map.get("gameId"));
                gamePropertyDto.setPlatformId(2l); //2 安卓 3 苹果
                gamePropertyDto.setClientId(map.get("clientId"));
                if (StringUtils.equals("移动3.0区", goodsInfo.getServerName())) {
                    gamePropertyDto.setServerId(1266203L);
                } else {
                    gamePropertyDto.setServerId(map.get("serviceId"));
                }
                goodsPublishDto.setGameProperty(gamePropertyDto);
                goodsPublishDto.setSecondCategoryId(map.get("secondCategoryId"));
                goodsPublishDto.setFirstCategoryId(1L);
            }
        }

        //金铲铲
        if (GameTypeConstant.JCC_ID.equals(goodsInfo.getGameId())) {
            String attr = "";
            String regional = goodsInfo.getSystemName()+goodsInfo.getCarrierName();
            String serverId = "1628838453287253";
            String secondCategoryId = "1684748849532774";
            if(regional.equals("安卓QQ")){
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1470047031091455,\"platform_id\":2,\"platform_ids\":{\"number\":[2]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748849547777,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145342716851,\"name\":\"灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145342719856,\"name\":\"神龙尊者 夜月幻龙 小小亚索\",\"value\":\"神龙尊者 夜月幻龙 小小亚索\"},{\"id\":1724145342722862,\"name\":\"神龙尊者 玉境灵龙 小小卡莎\",\"value\":\"神龙尊者 玉境灵龙 小小卡莎\"},{\"id\":1724145342725866,\"name\":\"源计划：雷 小小卢锡安\",\"value\":\"源计划：雷 小小卢锡安\"},{\"id\":1724145342728874,\"name\":\"星之守护者 小小阿卡丽\",\"value\":\"星之守护者 小小阿卡丽\"},{\"id\":1724145342731882,\"name\":\"源计划：林 小小易\",\"value\":\"源计划：林 小小易\"},{\"id\":1724145342732888,\"name\":\"星之守护者 小小阿狸\",\"value\":\"星之守护者 小小阿狸\"},{\"id\":1724145342736892,\"name\":\"神王 小小盖伦\",\"value\":\"神王 小小盖伦\"},{\"id\":1724145342737001,\"name\":\"银河三连星\",\"value\":\"银河三连星\"},{\"id\":1724145342741003,\"name\":\"至臻 香水宝石 小小迦娜\",\"value\":\"至臻 香水宝石 小小迦娜\"},{\"id\":1724145342743006,\"name\":\"究极大怪兽 胡子喵\",\"value\":\"究极大怪兽 胡子喵\"},{\"id\":1724145342745012,\"name\":\"EDG 银龙骑士 小小佐伊\",\"value\":\"EDG 银龙骑士 小小佐伊\"},{\"id\":1724145342749020,\"name\":\"星之守护者 小小拉克丝\",\"value\":\"星之守护者 小小拉克丝\"},{\"id\":1724145342753023,\"name\":\"甜心之羽 小小霞\",\"value\":\"甜心之羽 小小霞\"},{\"id\":1724145342755029,\"name\":\"至臻 剪纸仙灵 小小格温\",\"value\":\"至臻 剪纸仙灵 小小格温\"},{\"id\":1724145342757036,\"name\":\"泳池派对 小小菲奥娜 TheShy纪念限定\",\"value\":\"泳池派对 小小菲奥娜 TheShy纪念限定\"},{\"id\":1724145342758041,\"name\":\"香水宝石 小小锐雯\",\"value\":\"香水宝石 小小锐雯\"},{\"id\":1724145342760045,\"name\":\"香水宝石 小小迦娜\",\"value\":\"香水宝石 小小迦娜\"},{\"id\":1724145342764048,\"name\":\"香水宝石 小小奥莉安娜\",\"value\":\"香水宝石 小小奥莉安娜\"},{\"id\":1724145342765054,\"name\":\"DRX 小小凯特琳\",\"value\":\"DRX 小小凯特琳\"},{\"id\":1724145342769061,\"name\":\"至臻神龙尊者 小小李青\",\"value\":\"至臻神龙尊者 小小李青\"},{\"id\":1724145342772066,\"name\":\"至臻 小小亚索\",\"value\":\"至臻 小小亚索\"},{\"id\":1724145342773071,\"name\":\"DRX 小小艾希\",\"value\":\"DRX 小小艾希\"},{\"id\":1724145342776076,\"name\":\"战斗学院 小小凯特琳\",\"value\":\"战斗学院 小小凯特琳\"},{\"id\":1724145342780078,\"name\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145342780083,\"name\":\"源计划：雄心 小小卡特琳娜\",\"value\":\"源计划：雄心 小小卡特琳娜\"},{\"id\":1724145342783087,\"name\":\"电玩女神 小小厄运小姐\",\"value\":\"电玩女神 小小厄运小姐\"},{\"id\":1724145342786095,\"name\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\",\"value\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\"},{\"id\":1724145342788099,\"name\":\"KDA 阿卡丽\",\"value\":\"KDA 阿卡丽\"},{\"id\":1724145342791109,\"name\":\"KDA 卡莎\",\"value\":\"KDA 卡莎\"},{\"id\":1724145342793116,\"name\":\"K\\/DA ALL OUT 小小阿卡丽\",\"value\":\"K\\/DA ALL OUT 小小阿卡丽\"},{\"id\":1724145342795118,\"name\":\"至臻 KDA 阿狸\",\"value\":\"至臻 KDA 阿狸\"},{\"id\":1724145342798124,\"name\":\"KDA 伊芙琳\",\"value\":\"KDA 伊芙琳\"},{\"id\":1724145342799126,\"name\":\"KDA 阿狸\",\"value\":\"KDA 阿狸\"},{\"id\":1724145342801130,\"name\":\"K\\/DA ALL OUT小小卡莎\",\"value\":\"K\\/DA ALL OUT小小卡莎\"},{\"id\":1724145342805136,\"name\":\"K\\/DA ALL OUT小小阿狸\",\"value\":\"K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145342807141,\"name\":\"K\\/DA ALL OUT小小伊芙琳\",\"value\":\"K\\/DA ALL OUT小小伊芙琳\"},{\"id\":1724145342811149,\"name\":\"至臻 K\\/DA ALL OUT小小阿狸\",\"value\":\"至臻 K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145342811157,\"name\":\"隐龙之子 小小厄运小姐\",\"value\":\"隐龙之子 小小厄运小姐\"},{\"id\":1724145342814160,\"name\":\"敲钟牛 哞利斯塔\",\"value\":\"敲钟牛 哞利斯塔\"},{\"id\":1724145342816168,\"name\":\"山海绘卷 小小莉莉娅\",\"value\":\"山海绘卷 小小莉莉娅\"},{\"id\":1724145342818171,\"name\":\"赛博朋克 小小艾瑞莉娅\",\"value\":\"赛博朋克 小小艾瑞莉娅\"},{\"id\":1724145342821175,\"name\":\"赛博朋克 小小泰隆\",\"value\":\"赛博朋克 小小泰隆\"},{\"id\":1724145342824179,\"name\":\"电玩 小小布兰德\",\"value\":\"电玩 小小布兰德\"},{\"id\":1724145342828188,\"name\":\"小小哞利斯塔\",\"value\":\"小小哞利斯塔\"},{\"id\":1724145342831195,\"name\":\"香水宝石 金克丝\",\"value\":\"香水宝石 金克丝\"},{\"id\":1724145342833202,\"name\":\"至臻 隐龙之子 小小希瓦娜\",\"value\":\"至臻 隐龙之子 小小希瓦娜\"},{\"id\":1724145342833210,\"name\":\"小小鸡里奥\",\"value\":\"小小鸡里奥\"},{\"id\":1724145342836213,\"name\":\"灵魂莲华 小小厄斐琉斯\",\"value\":\"灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145342842220,\"name\":\"电玩战魂 小小赫卡里姆\",\"value\":\"电玩战魂 小小赫卡里姆\"},{\"id\":1724145342844226,\"name\":\"丹青妙笔 墨宝\",\"value\":\"丹青妙笔 墨宝\"},{\"id\":1724145342847231,\"name\":\"潮豹主播 墨宝\",\"value\":\"潮豹主播 墨宝\"},{\"id\":1724145342850235,\"name\":\"宝藏船长 墨宝\",\"value\":\"宝藏船长 墨宝\"},{\"id\":1724145342851240,\"name\":\"寻龙踏雪 墨宝\",\"value\":\"寻龙踏雪 墨宝\"},{\"id\":1724145342855245,\"name\":\"神龙尊者 昼日真龙 小小亚索\",\"value\":\"神龙尊者 昼日真龙 小小亚索\"},{\"id\":1724145342856250,\"name\":\"电玩女神 小小娑娜\",\"value\":\"电玩女神 小小娑娜\"},{\"id\":1724145342859255,\"name\":\"灵魂莲华明昼 鳞珑\",\"value\":\"灵魂莲华明昼 鳞珑\"},{\"id\":1724145342863260,\"name\":\"灵魂莲华 小小提莫\",\"value\":\"灵魂莲华 小小提莫\"},{\"id\":1724145342865263,\"name\":\"玉剑传说 小小泰隆\",\"value\":\"玉剑传说 小小泰隆\"},{\"id\":1724145342866269,\"name\":\"心之钢 小小永恩\",\"value\":\"心之钢 小小永恩\"},{\"id\":1724145342874278,\"name\":\"神龙烈焰 小小金克丝\",\"value\":\"神龙烈焰 小小金克丝\"},{\"id\":1724145342875289,\"name\":\"灵魂莲华 小小永恩\",\"value\":\"灵魂莲华 小小永恩\"},{\"id\":1724145342880292,\"name\":\"玉剑传说 小小艾瑞莉娅\",\"value\":\"玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145342883302,\"name\":\"神王 小小德莱厄斯\",\"value\":\"神王 小小德莱厄斯\"},{\"id\":1724145342889307,\"name\":\"至臻 小瑞\",\"value\":\"至臻 小瑞\"},{\"id\":1724145342891310,\"name\":\"至臻玉剑传说 小小艾瑞莉娅\",\"value\":\"至臻玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145342893312,\"name\":\"电玩女神 小小凯特琳\",\"value\":\"电玩女神 小小凯特琳\"},{\"id\":1724145342896318,\"name\":\"剪纸仙灵 小小格温\",\"value\":\"剪纸仙灵 小小格温\"},{\"id\":1724145342900323,\"name\":\"至臻 星辰鳞珑\",\"value\":\"至臻 星辰鳞珑\"},{\"id\":1724145342900327,\"name\":\"神龙尊者 小小李青\",\"value\":\"神龙尊者 小小李青\"},{\"id\":1724145342905330,\"name\":\"太空律动 小小璐璐\",\"value\":\"太空律动 小小璐璐\"},{\"id\":1724145342907334,\"name\":\"幻灵战斗猫 小小金克丝\",\"value\":\"幻灵战斗猫 小小金克丝\"},{\"id\":1724145342908338,\"name\":\"蔷薇绅士 小小杰斯\",\"value\":\"蔷薇绅士 小小杰斯\"},{\"id\":1724145342912342,\"name\":\"烈焰 银河三连星\",\"value\":\"烈焰 银河三连星\"},{\"id\":1724145342915350,\"name\":\"龙腾虎跃 小小瑟提\",\"value\":\"龙腾虎跃 小小瑟提\"},{\"id\":1724145342921351,\"name\":\"斗魂觉醒 小小拉克丝\",\"value\":\"斗魂觉醒 小小拉克丝\"},{\"id\":1724145342925354,\"name\":\"战斗学院 小小杰斯\",\"value\":\"战斗学院 小小杰斯\"},{\"id\":1724145342927356,\"name\":\"未来战士 小小伊泽瑞尔\",\"value\":\"未来战士 小小伊泽瑞尔\"},{\"id\":1724145342930360,\"name\":\"甜心之翎 小小洛\",\"value\":\"甜心之翎 小小洛\"},{\"id\":1724145342931364,\"name\":\"隐龙之子 小小蕾欧娜\",\"value\":\"隐龙之子 小小蕾欧娜\"},{\"id\":1724145342933369,\"name\":\"隐龙之子 小小伊泽瑞尔\",\"value\":\"隐龙之子 小小伊泽瑞尔\"},{\"id\":1724145342936374,\"name\":\"山海绘卷 小小妮蔻\",\"value\":\"山海绘卷 小小妮蔻\"},{\"id\":1724145342940378,\"name\":\"灵魂莲华 小小瑟提\",\"value\":\"灵魂莲华 小小瑟提\"},{\"id\":1724145342942380,\"name\":\"电玩 小小赫卡里姆\",\"value\":\"电玩 小小赫卡里姆\"},{\"id\":1724145342944382,\"name\":\"至臻 灵魂莲华 小小厄斐琉斯\",\"value\":\"至臻 灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145342947384,\"name\":\"灵魂莲华 小小锐雯\",\"value\":\"灵魂莲华 小小锐雯\"},{\"id\":1724145342949392,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":2,\"property_id\":1684748849911883,\"property_name\":\"小小英雄\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1684748850092038,\"name\":\"天雷轰炸\",\"value\":\"天雷轰炸\"},{\"id\":1684748850097040,\"name\":\"广安冲击\",\"value\":\"广安冲击\"},{\"id\":1684748850103041,\"name\":\"凛冬刺骨\",\"value\":\"凛冬刺骨\"},{\"id\":1684748850109043,\"name\":\"呼朋引伴\",\"value\":\"呼朋引伴\"},{\"id\":1684748850114044,\"name\":\"魔龙现\",\"value\":\"魔龙现\"},{\"id\":1684748850118047,\"name\":\"炎龙变\",\"value\":\"炎龙变\"},{\"id\":1684748850125048,\"name\":\"晨星\",\"value\":\"晨星\"},{\"id\":1684748850129049,\"name\":\"圣光追猎\",\"value\":\"圣光追猎\"},{\"id\":1684748850133050,\"name\":\"破败鱼叉\",\"value\":\"破败鱼叉\"},{\"id\":1684748850139051,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":4,\"property_id\":1684748850087037,\"property_name\":\"攻击特效\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145364014792,\"name\":\"香水宝石宫\",\"value\":\"香水宝石宫\"},{\"id\":1724145364016794,\"name\":\"电玩竞技场\",\"value\":\"电玩竞技场\"},{\"id\":1724145364018796,\"name\":\"魔龙之巢\",\"value\":\"魔龙之巢\"},{\"id\":1724145364023797,\"name\":\"云鹤仙观\",\"value\":\"云鹤仙观\"},{\"id\":1724145364024798,\"name\":\"黑默丁格的黄金实验室\",\"value\":\"黑默丁格的黄金实验室\"},{\"id\":1724145364027800,\"name\":\"K\\/DA强音之巅舞台\",\"value\":\"K\\/DA强音之巅舞台\"},{\"id\":1724145364028802,\"name\":\"可可爱爱房间\",\"value\":\"可可爱爱房间\"},{\"id\":1724145364033803,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":3,\"property_id\":1684748850145052,\"property_name\":\"热门棋盘\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1693812916575728,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1693812916577730,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":5,\"property_id\":1693812911060251,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":6,\"property_id\":1703657904489266,\"property_name\":\"神话英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":7,\"property_id\":1703657926870582,\"property_name\":\"小小英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":8,\"property_id\":1703657949889586,\"property_name\":\"棋盘数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1703657987519003,\"name\":\"黑铁\",\"value\":\"黑铁\"},{\"id\":1703657987524007,\"name\":\"黄铜\",\"value\":\"黄铜\"},{\"id\":1703657987527009,\"name\":\"白银\",\"value\":\"白银\"},{\"id\":1703657987530010,\"name\":\"黄金\",\"value\":\"黄金\"},{\"id\":1703657987534013,\"name\":\"铂金\",\"value\":\"铂金\"},{\"id\":1703657987536015,\"name\":\"翡翠\",\"value\":\"翡翠\"},{\"id\":1703657987538017,\"name\":\"钻石\",\"value\":\"钻石\"},{\"id\":1703657987541019,\"name\":\"超凡大师\",\"value\":\"超凡大师\"},{\"id\":1703657987546020,\"name\":\"傲视宗师\",\"value\":\"傲视宗师\"},{\"id\":1703657987548021,\"name\":\"最强王者\",\"value\":\"最强王者\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":9,\"property_id\":1703657977816070,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":10,\"required\":false},\"visible\":true}]},\"game_id\":1012010,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748849552778,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1684748849563781,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1684748849585788,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1684748849881874,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"16kg6kxju2v7g\"}}\n";
            }else if(regional.equals("苹果QQ")){
                serverId = "1628838453287253";
                secondCategoryId = "1684748965427304";
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1470047031280559,\"platform_id\":3,\"platform_ids\":{\"number\":[3]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748965441312,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145470629174,\"name\":\"灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145470632176,\"name\":\"神龙尊者 夜月幻龙 小小亚索\",\"value\":\"神龙尊者 夜月幻龙 小小亚索\"},{\"id\":1724145470632178,\"name\":\"神龙尊者 玉境灵龙 小小卡莎\",\"value\":\"神龙尊者 玉境灵龙 小小卡莎\"},{\"id\":1724145470636180,\"name\":\"源计划：雷 小小卢锡安\",\"value\":\"源计划：雷 小小卢锡安\"},{\"id\":1724145470639182,\"name\":\"星之守护者 小小阿卡丽\",\"value\":\"星之守护者 小小阿卡丽\"},{\"id\":1724145470641184,\"name\":\"源计划：林 小小易\",\"value\":\"源计划：林 小小易\"},{\"id\":1724145470643189,\"name\":\"星之守护者 小小阿狸\",\"value\":\"星之守护者 小小阿狸\"},{\"id\":1724145470646192,\"name\":\"神王 小小盖伦\",\"value\":\"神王 小小盖伦\"},{\"id\":1724145470648194,\"name\":\"银河三连星\",\"value\":\"银河三连星\"},{\"id\":1724145470651198,\"name\":\"至臻 香水宝石 小小迦娜\",\"value\":\"至臻 香水宝石 小小迦娜\"},{\"id\":1724145470652200,\"name\":\"究极大怪兽 胡子喵\",\"value\":\"究极大怪兽 胡子喵\"},{\"id\":1724145470656202,\"name\":\"EDG 银龙骑士 小小佐伊\",\"value\":\"EDG 银龙骑士 小小佐伊\"},{\"id\":1724145470659204,\"name\":\"星之守护者 小小拉克丝\",\"value\":\"星之守护者 小小拉克丝\"},{\"id\":1724145470661207,\"name\":\"甜心之羽 小小霞\",\"value\":\"甜心之羽 小小霞\"},{\"id\":1724145470662209,\"name\":\"至臻 剪纸仙灵 小小格温\",\"value\":\"至臻 剪纸仙灵 小小格温\"},{\"id\":1724145470666212,\"name\":\"泳池派对 小小菲奥娜 TheShy纪念限定\",\"value\":\"泳池派对 小小菲奥娜 TheShy纪念限定\"},{\"id\":1724145470669221,\"name\":\"香水宝石 小小锐雯\",\"value\":\"香水宝石 小小锐雯\"},{\"id\":1724145470671225,\"name\":\"香水宝石 小小迦娜\",\"value\":\"香水宝石 小小迦娜\"},{\"id\":1724145470674228,\"name\":\"香水宝石 小小奥莉安娜\",\"value\":\"香水宝石 小小奥莉安娜\"},{\"id\":1724145470677232,\"name\":\"DRX 小小凯特琳\",\"value\":\"DRX 小小凯特琳\"},{\"id\":1724145470678236,\"name\":\"至臻神龙尊者 小小李青\",\"value\":\"至臻神龙尊者 小小李青\"},{\"id\":1724145470683240,\"name\":\"至臻 小小亚索\",\"value\":\"至臻 小小亚索\"},{\"id\":1724145470684243,\"name\":\"DRX 小小艾希\",\"value\":\"DRX 小小艾希\"},{\"id\":1724145470687247,\"name\":\"战斗学院 小小凯特琳\",\"value\":\"战斗学院 小小凯特琳\"},{\"id\":1724145470691249,\"name\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145470693255,\"name\":\"源计划：雄心 小小卡特琳娜\",\"value\":\"源计划：雄心 小小卡特琳娜\"},{\"id\":1724145470697257,\"name\":\"电玩女神 小小厄运小姐\",\"value\":\"电玩女神 小小厄运小姐\"},{\"id\":1724145470701258,\"name\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\",\"value\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\"},{\"id\":1724145470703261,\"name\":\"KDA 阿卡丽\",\"value\":\"KDA 阿卡丽\"},{\"id\":1724145470705263,\"name\":\"KDA 卡莎\",\"value\":\"KDA 卡莎\"},{\"id\":1724145470709266,\"name\":\"K\\/DA ALL OUT 小小阿卡丽\",\"value\":\"K\\/DA ALL OUT 小小阿卡丽\"},{\"id\":1724145470711269,\"name\":\"至臻 KDA 阿狸\",\"value\":\"至臻 KDA 阿狸\"},{\"id\":1724145470715271,\"name\":\"KDA 伊芙琳\",\"value\":\"KDA 伊芙琳\"},{\"id\":1724145470716274,\"name\":\"KDA 阿狸\",\"value\":\"KDA 阿狸\"},{\"id\":1724145470719277,\"name\":\"K\\/DA ALL OUT小小卡莎\",\"value\":\"K\\/DA ALL OUT小小卡莎\"},{\"id\":1724145470720279,\"name\":\"K\\/DA ALL OUT小小阿狸\",\"value\":\"K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145470723282,\"name\":\"K\\/DA ALL OUT小小伊芙琳\",\"value\":\"K\\/DA ALL OUT小小伊芙琳\"},{\"id\":1724145470727285,\"name\":\"至臻 K\\/DA ALL OUT小小阿狸\",\"value\":\"至臻 K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145470728288,\"name\":\"隐龙之子 小小厄运小姐\",\"value\":\"隐龙之子 小小厄运小姐\"},{\"id\":1724145470730291,\"name\":\"敲钟牛 哞利斯塔\",\"value\":\"敲钟牛 哞利斯塔\"},{\"id\":1724145470735293,\"name\":\"山海绘卷 小小莉莉娅\",\"value\":\"山海绘卷 小小莉莉娅\"},{\"id\":1724145470738294,\"name\":\"赛博朋克 小小艾瑞莉娅\",\"value\":\"赛博朋克 小小艾瑞莉娅\"},{\"id\":1724145470740297,\"name\":\"赛博朋克 小小泰隆\",\"value\":\"赛博朋克 小小泰隆\"},{\"id\":1724145470743298,\"name\":\"电玩 小小布兰德\",\"value\":\"电玩 小小布兰德\"},{\"id\":1724145470746300,\"name\":\"小小哞利斯塔\",\"value\":\"小小哞利斯塔\"},{\"id\":1724145470748303,\"name\":\"香水宝石 金克丝\",\"value\":\"香水宝石 金克丝\"},{\"id\":1724145470752304,\"name\":\"至臻 隐龙之子 小小希瓦娜\",\"value\":\"至臻 隐龙之子 小小希瓦娜\"},{\"id\":1724145470755305,\"name\":\"小小鸡里奥\",\"value\":\"小小鸡里奥\"},{\"id\":1724145470758306,\"name\":\"灵魂莲华 小小厄斐琉斯\",\"value\":\"灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145470761309,\"name\":\"电玩战魂 小小赫卡里姆\",\"value\":\"电玩战魂 小小赫卡里姆\"},{\"id\":1724145470763310,\"name\":\"丹青妙笔 墨宝\",\"value\":\"丹青妙笔 墨宝\"},{\"id\":1724145470766313,\"name\":\"潮豹主播 墨宝\",\"value\":\"潮豹主播 墨宝\"},{\"id\":1724145470770315,\"name\":\"宝藏船长 墨宝\",\"value\":\"宝藏船长 墨宝\"},{\"id\":1724145470794322,\"name\":\"寻龙踏雪 墨宝\",\"value\":\"寻龙踏雪 墨宝\"},{\"id\":1724145470798323,\"name\":\"神龙尊者 昼日真龙 小小亚索\",\"value\":\"神龙尊者 昼日真龙 小小亚索\"},{\"id\":1724145470799326,\"name\":\"电玩女神 小小娑娜\",\"value\":\"电玩女神 小小娑娜\"},{\"id\":1724145470803329,\"name\":\"灵魂莲华明昼 鳞珑\",\"value\":\"灵魂莲华明昼 鳞珑\"},{\"id\":1724145470808332,\"name\":\"灵魂莲华 小小提莫\",\"value\":\"灵魂莲华 小小提莫\"},{\"id\":1724145470810335,\"name\":\"玉剑传说 小小泰隆\",\"value\":\"玉剑传说 小小泰隆\"},{\"id\":1724145470813336,\"name\":\"心之钢 小小永恩\",\"value\":\"心之钢 小小永恩\"},{\"id\":1724145470816338,\"name\":\"神龙烈焰 小小金克丝\",\"value\":\"神龙烈焰 小小金克丝\"},{\"id\":1724145470819339,\"name\":\"灵魂莲华 小小永恩\",\"value\":\"灵魂莲华 小小永恩\"},{\"id\":1724145470821341,\"name\":\"玉剑传说 小小艾瑞莉娅\",\"value\":\"玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145470823343,\"name\":\"神王 小小德莱厄斯\",\"value\":\"神王 小小德莱厄斯\"},{\"id\":1724145470824345,\"name\":\"至臻 小瑞\",\"value\":\"至臻 小瑞\"},{\"id\":1724145470830348,\"name\":\"至臻玉剑传说 小小艾瑞莉娅\",\"value\":\"至臻玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145470831349,\"name\":\"电玩女神 小小凯特琳\",\"value\":\"电玩女神 小小凯特琳\"},{\"id\":1724145470835350,\"name\":\"剪纸仙灵 小小格温\",\"value\":\"剪纸仙灵 小小格温\"},{\"id\":1724145470837351,\"name\":\"至臻 星辰鳞珑\",\"value\":\"至臻 星辰鳞珑\"},{\"id\":1724145470839352,\"name\":\"神龙尊者 小小李青\",\"value\":\"神龙尊者 小小李青\"},{\"id\":1724145470841353,\"name\":\"太空律动 小小璐璐\",\"value\":\"太空律动 小小璐璐\"},{\"id\":1724145470844355,\"name\":\"幻灵战斗猫 小小金克丝\",\"value\":\"幻灵战斗猫 小小金克丝\"},{\"id\":1724145470848356,\"name\":\"蔷薇绅士 小小杰斯\",\"value\":\"蔷薇绅士 小小杰斯\"},{\"id\":1724145470850357,\"name\":\"烈焰 银河三连星\",\"value\":\"烈焰 银河三连星\"},{\"id\":1724145470852358,\"name\":\"龙腾虎跃 小小瑟提\",\"value\":\"龙腾虎跃 小小瑟提\"},{\"id\":1724145470856359,\"name\":\"斗魂觉醒 小小拉克丝\",\"value\":\"斗魂觉醒 小小拉克丝\"},{\"id\":1724145470857360,\"name\":\"战斗学院 小小杰斯\",\"value\":\"战斗学院 小小杰斯\"},{\"id\":1724145470862362,\"name\":\"未来战士 小小伊泽瑞尔\",\"value\":\"未来战士 小小伊泽瑞尔\"},{\"id\":1724145470863363,\"name\":\"甜心之翎 小小洛\",\"value\":\"甜心之翎 小小洛\"},{\"id\":1724145470890375,\"name\":\"隐龙之子 小小蕾欧娜\",\"value\":\"隐龙之子 小小蕾欧娜\"},{\"id\":1724145470895378,\"name\":\"隐龙之子 小小伊泽瑞尔\",\"value\":\"隐龙之子 小小伊泽瑞尔\"},{\"id\":1724145470897379,\"name\":\"山海绘卷 小小妮蔻\",\"value\":\"山海绘卷 小小妮蔻\"},{\"id\":1724145470901384,\"name\":\"灵魂莲华 小小瑟提\",\"value\":\"灵魂莲华 小小瑟提\"},{\"id\":1724145470902386,\"name\":\"电玩 小小赫卡里姆\",\"value\":\"电玩 小小赫卡里姆\"},{\"id\":1724145470905389,\"name\":\"至臻 灵魂莲华 小小厄斐琉斯\",\"value\":\"至臻 灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145470909394,\"name\":\"灵魂莲华 小小锐雯\",\"value\":\"灵魂莲华 小小锐雯\"},{\"id\":1724145470910399,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":2,\"property_id\":1684748965780524,\"property_name\":\"小小英雄\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1684748965956610,\"name\":\"天雷轰炸\",\"value\":\"天雷轰炸\"},{\"id\":1684748965960612,\"name\":\"广安冲击\",\"value\":\"广安冲击\"},{\"id\":1684748965966616,\"name\":\"凛冬刺骨\",\"value\":\"凛冬刺骨\"},{\"id\":1684748965971617,\"name\":\"呼朋引伴\",\"value\":\"呼朋引伴\"},{\"id\":1684748965976618,\"name\":\"魔龙现\",\"value\":\"魔龙现\"},{\"id\":1684748965982620,\"name\":\"炎龙变\",\"value\":\"炎龙变\"},{\"id\":1684748965986621,\"name\":\"晨星\",\"value\":\"晨星\"},{\"id\":1684748965991623,\"name\":\"圣光追猎\",\"value\":\"圣光追猎\"},{\"id\":1684748965995624,\"name\":\"破败鱼叉\",\"value\":\"破败鱼叉\"},{\"id\":1684748966000626,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":4,\"property_id\":1684748965950606,\"property_name\":\"攻击特效\",\"property_rule\":{\"max_length\":200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145532326407,\"name\":\"香水宝石宫\",\"value\":\"香水宝石宫\"},{\"id\":1724145532329408,\"name\":\"电玩竞技场\",\"value\":\"电玩竞技场\"},{\"id\":1724145532333410,\"name\":\"魔龙之巢\",\"value\":\"魔龙之巢\"},{\"id\":1724145532337411,\"name\":\"云鹤仙观\",\"value\":\"云鹤仙观\"},{\"id\":1724145532338414,\"name\":\"黑默丁格的黄金实验室\",\"value\":\"黑默丁格的黄金实验室\"},{\"id\":1724145532342416,\"name\":\"K\\/DA强音之巅舞台\",\"value\":\"K\\/DA强音之巅舞台\"},{\"id\":1724145532344418,\"name\":\"可可爱爱房间\",\"value\":\"可可爱爱房间\"},{\"id\":1724145532348419,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":3,\"property_id\":1684748966005627,\"property_name\":\"热门棋盘\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1693813161871482,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1693813161875484,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":5,\"property_id\":1693813156762785,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":6,\"property_id\":1703658247657580,\"property_name\":\"神话英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":7,\"property_id\":1703658270516634,\"property_name\":\"小小英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":8,\"property_id\":1703658295010461,\"property_name\":\"棋盘数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1703658329967187,\"name\":\"黑铁\",\"value\":\"黑铁\"},{\"id\":1703658329970189,\"name\":\"黄铜\",\"value\":\"黄铜\"},{\"id\":1703658329973193,\"name\":\"白银\",\"value\":\"白银\"},{\"id\":1703658329976194,\"name\":\"黄金\",\"value\":\"黄金\"},{\"id\":1703658329979196,\"name\":\"铂金\",\"value\":\"铂金\"},{\"id\":1703658329982199,\"name\":\"翡翠\",\"value\":\"翡翠\"},{\"id\":1703658329985204,\"name\":\"钻石\",\"value\":\"钻石\"},{\"id\":1703658329988206,\"name\":\"超凡大师\",\"value\":\"超凡大师\"},{\"id\":1703658329991207,\"name\":\"傲视宗师\",\"value\":\"傲视宗师\"},{\"id\":1703658329993208,\"name\":\"最强王者\",\"value\":\"最强王者\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":9,\"property_id\":1703658317643594,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":10,\"required\":false},\"visible\":true}]},\"game_id\":1012010,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748965446313,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1684748965456320,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1684748965478335,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1684748965750500,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"16l8t5dvozotp\"}}\n";
            }else if(regional.equals("安卓微信")){
                secondCategoryId = "1684748894716556";
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1470047033047733,\"platform_id\":2,\"platform_ids\":{\"number\":[2]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748894737562,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1684748895089668,\"name\":\"天雷轰炸\",\"value\":\"天雷轰炸\"},{\"id\":1684748895094671,\"name\":\"广安冲击\",\"value\":\"广安冲击\"},{\"id\":1684748895099673,\"name\":\"凛冬刺骨\",\"value\":\"凛冬刺骨\"},{\"id\":1684748895104674,\"name\":\"呼朋引伴\",\"value\":\"呼朋引伴\"},{\"id\":1684748895109675,\"name\":\"魔龙现\",\"value\":\"魔龙现\"},{\"id\":1684748895114676,\"name\":\"炎龙变\",\"value\":\"炎龙变\"},{\"id\":1684748895119679,\"name\":\"晨星\",\"value\":\"晨星\"},{\"id\":1684748895125680,\"name\":\"圣光追猎\",\"value\":\"圣光追猎\"},{\"id\":1684748895130681,\"name\":\"破败鱼叉\",\"value\":\"破败鱼叉\"},{\"id\":1684748895135682,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":4,\"property_id\":1684748895084666,\"property_name\":\"攻击特效\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145421508674,\"name\":\"香水宝石宫\",\"value\":\"香水宝石宫\"},{\"id\":1724145421510678,\"name\":\"电玩竞技场\",\"value\":\"电玩竞技场\"},{\"id\":1724145421511681,\"name\":\"魔龙之巢\",\"value\":\"魔龙之巢\"},{\"id\":1724145421545707,\"name\":\"云鹤仙观\",\"value\":\"云鹤仙观\"},{\"id\":1724145421549710,\"name\":\"黑默丁格的黄金实验室\",\"value\":\"黑默丁格的黄金实验室\"},{\"id\":1724145421550712,\"name\":\"K\\/DA强音之巅舞台\",\"value\":\"K\\/DA强音之巅舞台\"},{\"id\":1724145421554714,\"name\":\"可可爱爱房间\",\"value\":\"可可爱爱房间\"},{\"id\":1724145421559717,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":3,\"property_id\":1684748895140683,\"property_name\":\"热门棋盘\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145400195629,\"name\":\"灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145400197632,\"name\":\"神龙尊者 夜月幻龙 小小亚索\",\"value\":\"神龙尊者 夜月幻龙 小小亚索\"},{\"id\":1724145400201635,\"name\":\"神龙尊者 玉境灵龙 小小卡莎\",\"value\":\"神龙尊者 玉境灵龙 小小卡莎\"},{\"id\":1724145400205637,\"name\":\"源计划：雷 小小卢锡安\",\"value\":\"源计划：雷 小小卢锡安\"},{\"id\":1724145400207640,\"name\":\"星之守护者 小小阿卡丽\",\"value\":\"星之守护者 小小阿卡丽\"},{\"id\":1724145400211643,\"name\":\"源计划：林 小小易\",\"value\":\"源计划：林 小小易\"},{\"id\":1724145400213645,\"name\":\"星之守护者 小小阿狸\",\"value\":\"星之守护者 小小阿狸\"},{\"id\":1724145400215649,\"name\":\"神王 小小盖伦\",\"value\":\"神王 小小盖伦\"},{\"id\":1724145400218653,\"name\":\"银河三连星\",\"value\":\"银河三连星\"},{\"id\":1724145400220655,\"name\":\"至臻 香水宝石 小小迦娜\",\"value\":\"至臻 香水宝石 小小迦娜\"},{\"id\":1724145400225658,\"name\":\"究极大怪兽 胡子喵\",\"value\":\"究极大怪兽 胡子喵\"},{\"id\":1724145400226660,\"name\":\"EDG 银龙骑士 小小佐伊\",\"value\":\"EDG 银龙骑士 小小佐伊\"},{\"id\":1724145400228662,\"name\":\"星之守护者 小小拉克丝\",\"value\":\"星之守护者 小小拉克丝\"},{\"id\":1724145400231665,\"name\":\"甜心之羽 小小霞\",\"value\":\"甜心之羽 小小霞\"},{\"id\":1724145400236667,\"name\":\"至臻 剪纸仙灵 小小格温\",\"value\":\"至臻 剪纸仙灵 小小格温\"},{\"id\":1724145400240671,\"name\":\"泳池派对 小小菲奥娜 TheShy纪念限定\",\"value\":\"泳池派对 小小菲奥娜 TheShy纪念限定\"},{\"id\":1724145400243675,\"name\":\"香水宝石 小小锐雯\",\"value\":\"香水宝石 小小锐雯\"},{\"id\":1724145400245678,\"name\":\"香水宝石 小小迦娜\",\"value\":\"香水宝石 小小迦娜\"},{\"id\":1724145400247681,\"name\":\"香水宝石 小小奥莉安娜\",\"value\":\"香水宝石 小小奥莉安娜\"},{\"id\":1724145400251683,\"name\":\"DRX 小小凯特琳\",\"value\":\"DRX 小小凯特琳\"},{\"id\":1724145400252690,\"name\":\"至臻神龙尊者 小小李青\",\"value\":\"至臻神龙尊者 小小李青\"},{\"id\":1724145400255692,\"name\":\"至臻 小小亚索\",\"value\":\"至臻 小小亚索\"},{\"id\":1724145400259695,\"name\":\"DRX 小小艾希\",\"value\":\"DRX 小小艾希\"},{\"id\":1724145400261698,\"name\":\"战斗学院 小小凯特琳\",\"value\":\"战斗学院 小小凯特琳\"},{\"id\":1724145400264700,\"name\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145400267704,\"name\":\"源计划：雄心 小小卡特琳娜\",\"value\":\"源计划：雄心 小小卡特琳娜\"},{\"id\":1724145400269706,\"name\":\"电玩女神 小小厄运小姐\",\"value\":\"电玩女神 小小厄运小姐\"},{\"id\":1724145400272710,\"name\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\",\"value\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\"},{\"id\":1724145400273714,\"name\":\"KDA 阿卡丽\",\"value\":\"KDA 阿卡丽\"},{\"id\":1724145400276716,\"name\":\"KDA 卡莎\",\"value\":\"KDA 卡莎\"},{\"id\":1724145400279718,\"name\":\"K\\/DA ALL OUT 小小阿卡丽\",\"value\":\"K\\/DA ALL OUT 小小阿卡丽\"},{\"id\":1724145400284722,\"name\":\"至臻 KDA 阿狸\",\"value\":\"至臻 KDA 阿狸\"},{\"id\":1724145400289724,\"name\":\"KDA 伊芙琳\",\"value\":\"KDA 伊芙琳\"},{\"id\":1724145400291727,\"name\":\"KDA 阿狸\",\"value\":\"KDA 阿狸\"},{\"id\":1724145400296730,\"name\":\"K\\/DA ALL OUT小小卡莎\",\"value\":\"K\\/DA ALL OUT小小卡莎\"},{\"id\":1724145400299735,\"name\":\"K\\/DA ALL OUT小小阿狸\",\"value\":\"K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145400301737,\"name\":\"K\\/DA ALL OUT小小伊芙琳\",\"value\":\"K\\/DA ALL OUT小小伊芙琳\"},{\"id\":1724145400304740,\"name\":\"至臻 K\\/DA ALL OUT小小阿狸\",\"value\":\"至臻 K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145400306743,\"name\":\"隐龙之子 小小厄运小姐\",\"value\":\"隐龙之子 小小厄运小姐\"},{\"id\":1724145400307746,\"name\":\"敲钟牛 哞利斯塔\",\"value\":\"敲钟牛 哞利斯塔\"},{\"id\":1724145400309749,\"name\":\"山海绘卷 小小莉莉娅\",\"value\":\"山海绘卷 小小莉莉娅\"},{\"id\":1724145400314753,\"name\":\"赛博朋克 小小艾瑞莉娅\",\"value\":\"赛博朋克 小小艾瑞莉娅\"},{\"id\":1724145400318758,\"name\":\"赛博朋克 小小泰隆\",\"value\":\"赛博朋克 小小泰隆\"},{\"id\":1724145400321761,\"name\":\"电玩 小小布兰德\",\"value\":\"电玩 小小布兰德\"},{\"id\":1724145400324763,\"name\":\"小小哞利斯塔\",\"value\":\"小小哞利斯塔\"},{\"id\":1724145400327768,\"name\":\"香水宝石 金克丝\",\"value\":\"香水宝石 金克丝\"},{\"id\":1724145400328772,\"name\":\"至臻 隐龙之子 小小希瓦娜\",\"value\":\"至臻 隐龙之子 小小希瓦娜\"},{\"id\":1724145400331773,\"name\":\"小小鸡里奥\",\"value\":\"小小鸡里奥\"},{\"id\":1724145400333778,\"name\":\"灵魂莲华 小小厄斐琉斯\",\"value\":\"灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145400337781,\"name\":\"电玩战魂 小小赫卡里姆\",\"value\":\"电玩战魂 小小赫卡里姆\"},{\"id\":1724145400339784,\"name\":\"丹青妙笔 墨宝\",\"value\":\"丹青妙笔 墨宝\"},{\"id\":1724145400342786,\"name\":\"潮豹主播 墨宝\",\"value\":\"潮豹主播 墨宝\"},{\"id\":1724145400346788,\"name\":\"宝藏船长 墨宝\",\"value\":\"宝藏船长 墨宝\"},{\"id\":1724145400348791,\"name\":\"寻龙踏雪 墨宝\",\"value\":\"寻龙踏雪 墨宝\"},{\"id\":1724145400350794,\"name\":\"神龙尊者 昼日真龙 小小亚索\",\"value\":\"神龙尊者 昼日真龙 小小亚索\"},{\"id\":1724145400353795,\"name\":\"电玩女神 小小娑娜\",\"value\":\"电玩女神 小小娑娜\"},{\"id\":1724145400357797,\"name\":\"灵魂莲华明昼 鳞珑\",\"value\":\"灵魂莲华明昼 鳞珑\"},{\"id\":1724145400358803,\"name\":\"灵魂莲华 小小提莫\",\"value\":\"灵魂莲华 小小提莫\"},{\"id\":1724145400362805,\"name\":\"玉剑传说 小小泰隆\",\"value\":\"玉剑传说 小小泰隆\"},{\"id\":1724145400365808,\"name\":\"心之钢 小小永恩\",\"value\":\"心之钢 小小永恩\"},{\"id\":1724145400368811,\"name\":\"神龙烈焰 小小金克丝\",\"value\":\"神龙烈焰 小小金克丝\"},{\"id\":1724145400371815,\"name\":\"灵魂莲华 小小永恩\",\"value\":\"灵魂莲华 小小永恩\"},{\"id\":1724145400373816,\"name\":\"玉剑传说 小小艾瑞莉娅\",\"value\":\"玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145400377818,\"name\":\"神王 小小德莱厄斯\",\"value\":\"神王 小小德莱厄斯\"},{\"id\":1724145400377821,\"name\":\"至臻 小瑞\",\"value\":\"至臻 小瑞\"},{\"id\":1724145400381824,\"name\":\"至臻玉剑传说 小小艾瑞莉娅\",\"value\":\"至臻玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145400384827,\"name\":\"电玩女神 小小凯特琳\",\"value\":\"电玩女神 小小凯特琳\"},{\"id\":1724145400388831,\"name\":\"剪纸仙灵 小小格温\",\"value\":\"剪纸仙灵 小小格温\"},{\"id\":1724145400391833,\"name\":\"至臻 星辰鳞珑\",\"value\":\"至臻 星辰鳞珑\"},{\"id\":1724145400394836,\"name\":\"神龙尊者 小小李青\",\"value\":\"神龙尊者 小小李青\"},{\"id\":1724145400397838,\"name\":\"太空律动 小小璐璐\",\"value\":\"太空律动 小小璐璐\"},{\"id\":1724145400399841,\"name\":\"幻灵战斗猫 小小金克丝\",\"value\":\"幻灵战斗猫 小小金克丝\"},{\"id\":1724145400401843,\"name\":\"蔷薇绅士 小小杰斯\",\"value\":\"蔷薇绅士 小小杰斯\"},{\"id\":1724145400405847,\"name\":\"烈焰 银河三连星\",\"value\":\"烈焰 银河三连星\"},{\"id\":1724145400406851,\"name\":\"龙腾虎跃 小小瑟提\",\"value\":\"龙腾虎跃 小小瑟提\"},{\"id\":1724145400410854,\"name\":\"斗魂觉醒 小小拉克丝\",\"value\":\"斗魂觉醒 小小拉克丝\"},{\"id\":1724145400411859,\"name\":\"战斗学院 小小杰斯\",\"value\":\"战斗学院 小小杰斯\"},{\"id\":1724145400415861,\"name\":\"未来战士 小小伊泽瑞尔\",\"value\":\"未来战士 小小伊泽瑞尔\"},{\"id\":1724145400417863,\"name\":\"甜心之翎 小小洛\",\"value\":\"甜心之翎 小小洛\"},{\"id\":1724145400421868,\"name\":\"隐龙之子 小小蕾欧娜\",\"value\":\"隐龙之子 小小蕾欧娜\"},{\"id\":1724145400423871,\"name\":\"隐龙之子 小小伊泽瑞尔\",\"value\":\"隐龙之子 小小伊泽瑞尔\"},{\"id\":1724145400427876,\"name\":\"山海绘卷 小小妮蔻\",\"value\":\"山海绘卷 小小妮蔻\"},{\"id\":1724145400428879,\"name\":\"灵魂莲华 小小瑟提\",\"value\":\"灵魂莲华 小小瑟提\"},{\"id\":1724145400431885,\"name\":\"电玩 小小赫卡里姆\",\"value\":\"电玩 小小赫卡里姆\"},{\"id\":1724145400433888,\"name\":\"至臻 灵魂莲华 小小厄斐琉斯\",\"value\":\"至臻 灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145400436890,\"name\":\"灵魂莲华 小小锐雯\",\"value\":\"灵魂莲华 小小锐雯\"},{\"id\":1724145400438891,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":2,\"property_id\":1684748895197700,\"property_name\":\"小小英雄\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1693812947191003,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1693812947195004,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":5,\"property_id\":1693812941888147,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":6,\"property_id\":1703658075255413,\"property_name\":\"神话英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":7,\"property_id\":1703658097105337,\"property_name\":\"小小英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":8,\"property_id\":1703658118579397,\"property_name\":\"棋盘数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1703658150442833,\"name\":\"黑铁\",\"value\":\"黑铁\"},{\"id\":1703658150445834,\"name\":\"黄铜\",\"value\":\"黄铜\"},{\"id\":1703658150448835,\"name\":\"白银\",\"value\":\"白银\"},{\"id\":1703658150450837,\"name\":\"黄金\",\"value\":\"黄金\"},{\"id\":1703658150455840,\"name\":\"铂金\",\"value\":\"铂金\"},{\"id\":1703658150458841,\"name\":\"翡翠\",\"value\":\"翡翠\"},{\"id\":1703658150462844,\"name\":\"钻石\",\"value\":\"钻石\"},{\"id\":1703658150464848,\"name\":\"超凡大师\",\"value\":\"超凡大师\"},{\"id\":1703658150467850,\"name\":\"傲视宗师\",\"value\":\"傲视宗师\"},{\"id\":1703658150471851,\"name\":\"最强王者\",\"value\":\"最强王者\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":9,\"property_id\":1703658139907208,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":10,\"required\":false},\"visible\":true}]},\"game_id\":1012010,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":1,\"property_id\":1684748894743563,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^(?![0-9])(?!\\\\d+$)[^\\\\u4e00-\\\\u9fa5]{6,20}$\",\"pattern_msg\":\"不允许全数字且数字开头，不能有中文，长度在6到20之间\",\"required\":true},\"visible\":true},{\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1684748894748564,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1684748894770571,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1684748895056659,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"15r8fs5n7x73x\"}}\n";
            }else {
                secondCategoryId = "1684748994095587";
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1499667551454656,\"platform_id\":3,\"platform_ids\":{\"number\":[3]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1684748994116597,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1684748994502795,\"name\":\"天雷轰炸\",\"value\":\"天雷轰炸\"},{\"id\":1684748994506797,\"name\":\"广安冲击\",\"value\":\"广安冲击\"},{\"id\":1684748994512800,\"name\":\"凛冬刺骨\",\"value\":\"凛冬刺骨\"},{\"id\":1684748994517802,\"name\":\"呼朋引伴\",\"value\":\"呼朋引伴\"},{\"id\":1684748994522804,\"name\":\"魔龙现\",\"value\":\"魔龙现\"},{\"id\":1684748994527805,\"name\":\"炎龙变\",\"value\":\"炎龙变\"},{\"id\":1684748994532806,\"name\":\"晨星\",\"value\":\"晨星\"},{\"id\":1684748994537811,\"name\":\"圣光追猎\",\"value\":\"圣光追猎\"},{\"id\":1684748994541815,\"name\":\"破败鱼叉\",\"value\":\"破败鱼叉\"},{\"id\":1684748994546818,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":4,\"property_id\":1684748994497793,\"property_name\":\"攻击特效\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145569572513,\"name\":\"香水宝石宫\",\"value\":\"香水宝石宫\"},{\"id\":1724145569576515,\"name\":\"电玩竞技场\",\"value\":\"电玩竞技场\"},{\"id\":1724145569580518,\"name\":\"魔龙之巢\",\"value\":\"魔龙之巢\"},{\"id\":1724145569582522,\"name\":\"云鹤仙观\",\"value\":\"云鹤仙观\"},{\"id\":1724145569586525,\"name\":\"黑默丁格的黄金实验室\",\"value\":\"黑默丁格的黄金实验室\"},{\"id\":1724145569589527,\"name\":\"K\\/DA强音之巅舞台\",\"value\":\"K\\/DA强音之巅舞台\"},{\"id\":1724145569592528,\"name\":\"可可爱爱房间\",\"value\":\"可可爱爱房间\"},{\"id\":1724145569594531,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":3,\"property_id\":1684748994551820,\"property_name\":\"热门棋盘\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"content_type\":22,\"options\":{\"goods_property_option_dto\":[{\"id\":1724145589151819,\"name\":\"灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145589152821,\"name\":\"神龙尊者 夜月幻龙 小小亚索\",\"value\":\"神龙尊者 夜月幻龙 小小亚索\"},{\"id\":1724145589157824,\"name\":\"神龙尊者 玉境灵龙 小小卡莎\",\"value\":\"神龙尊者 玉境灵龙 小小卡莎\"},{\"id\":1724145589158826,\"name\":\"源计划：雷 小小卢锡安\",\"value\":\"源计划：雷 小小卢锡安\"},{\"id\":1724145589162827,\"name\":\"星之守护者 小小阿卡丽\",\"value\":\"星之守护者 小小阿卡丽\"},{\"id\":1724145589165828,\"name\":\"源计划：林 小小易\",\"value\":\"源计划：林 小小易\"},{\"id\":1724145589166829,\"name\":\"星之守护者 小小阿狸\",\"value\":\"星之守护者 小小阿狸\"},{\"id\":1724145589169831,\"name\":\"神王 小小盖伦\",\"value\":\"神王 小小盖伦\"},{\"id\":1724145589171833,\"name\":\"银河三连星\",\"value\":\"银河三连星\"},{\"id\":1724145589175835,\"name\":\"至臻 香水宝石 小小迦娜\",\"value\":\"至臻 香水宝石 小小迦娜\"},{\"id\":1724145589178837,\"name\":\"究极大怪兽 胡子喵\",\"value\":\"究极大怪兽 胡子喵\"},{\"id\":1724145589181839,\"name\":\"EDG 银龙骑士 小小佐伊\",\"value\":\"EDG 银龙骑士 小小佐伊\"},{\"id\":1724145589183840,\"name\":\"星之守护者 小小拉克丝\",\"value\":\"星之守护者 小小拉克丝\"},{\"id\":1724145589187843,\"name\":\"甜心之羽 小小霞\",\"value\":\"甜心之羽 小小霞\"},{\"id\":1724145589191848,\"name\":\"至臻 剪纸仙灵 小小格温\",\"value\":\"至臻 剪纸仙灵 小小格温\"},{\"id\":1724145589194850,\"name\":\"泳池派对 小小菲奥娜 TheShy纪念限定\",\"value\":\"泳池派对 小小菲奥娜 TheShy纪念限定\"},{\"id\":1724145589197853,\"name\":\"香水宝石 小小锐雯\",\"value\":\"香水宝石 小小锐雯\"},{\"id\":1724145589200854,\"name\":\"香水宝石 小小迦娜\",\"value\":\"香水宝石 小小迦娜\"},{\"id\":1724145589203855,\"name\":\"香水宝石 小小奥莉安娜\",\"value\":\"香水宝石 小小奥莉安娜\"},{\"id\":1724145589206856,\"name\":\"DRX 小小凯特琳\",\"value\":\"DRX 小小凯特琳\"},{\"id\":1724145589210857,\"name\":\"至臻神龙尊者 小小李青\",\"value\":\"至臻神龙尊者 小小李青\"},{\"id\":1724145589212860,\"name\":\"至臻 小小亚索\",\"value\":\"至臻 小小亚索\"},{\"id\":1724145589214861,\"name\":\"DRX 小小艾希\",\"value\":\"DRX 小小艾希\"},{\"id\":1724145589218863,\"name\":\"战斗学院 小小凯特琳\",\"value\":\"战斗学院 小小凯特琳\"},{\"id\":1724145589245872,\"name\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\",\"value\":\"至臻 灵魂莲华 小小薇恩 Uzi纪念限定\"},{\"id\":1724145589248874,\"name\":\"源计划：雄心 小小卡特琳娜\",\"value\":\"源计划：雄心 小小卡特琳娜\"},{\"id\":1724145589250875,\"name\":\"电玩女神 小小厄运小姐\",\"value\":\"电玩女神 小小厄运小姐\"},{\"id\":1724145589253878,\"name\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\",\"value\":\"K\\/DA ALL OUT 超级巨星 小小萨勒芬妮\"},{\"id\":1724145589256879,\"name\":\"KDA 阿卡丽\",\"value\":\"KDA 阿卡丽\"},{\"id\":1724145589257880,\"name\":\"KDA 卡莎\",\"value\":\"KDA 卡莎\"},{\"id\":1724145589260881,\"name\":\"K\\/DA ALL OUT 小小阿卡丽\",\"value\":\"K\\/DA ALL OUT 小小阿卡丽\"},{\"id\":1724145589263883,\"name\":\"至臻 KDA 阿狸\",\"value\":\"至臻 KDA 阿狸\"},{\"id\":1724145589265885,\"name\":\"KDA 伊芙琳\",\"value\":\"KDA 伊芙琳\"},{\"id\":1724145589268887,\"name\":\"KDA 阿狸\",\"value\":\"KDA 阿狸\"},{\"id\":1724145589271892,\"name\":\"K\\/DA ALL OUT小小卡莎\",\"value\":\"K\\/DA ALL OUT小小卡莎\"},{\"id\":1724145589274894,\"name\":\"K\\/DA ALL OUT小小阿狸\",\"value\":\"K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145589275896,\"name\":\"K\\/DA ALL OUT小小伊芙琳\",\"value\":\"K\\/DA ALL OUT小小伊芙琳\"},{\"id\":1724145589280897,\"name\":\"至臻 K\\/DA ALL OUT小小阿狸\",\"value\":\"至臻 K\\/DA ALL OUT小小阿狸\"},{\"id\":1724145589282899,\"name\":\"隐龙之子 小小厄运小姐\",\"value\":\"隐龙之子 小小厄运小姐\"},{\"id\":1724145589283002,\"name\":\"敲钟牛 哞利斯塔\",\"value\":\"敲钟牛 哞利斯塔\"},{\"id\":1724145589286004,\"name\":\"山海绘卷 小小莉莉娅\",\"value\":\"山海绘卷 小小莉莉娅\"},{\"id\":1724145589290008,\"name\":\"赛博朋克 小小艾瑞莉娅\",\"value\":\"赛博朋克 小小艾瑞莉娅\"},{\"id\":1724145589293010,\"name\":\"赛博朋克 小小泰隆\",\"value\":\"赛博朋克 小小泰隆\"},{\"id\":1724145589297012,\"name\":\"电玩 小小布兰德\",\"value\":\"电玩 小小布兰德\"},{\"id\":1724145589300013,\"name\":\"小小哞利斯塔\",\"value\":\"小小哞利斯塔\"},{\"id\":1724145589303017,\"name\":\"香水宝石 金克丝\",\"value\":\"香水宝石 金克丝\"},{\"id\":1724145589306018,\"name\":\"至臻 隐龙之子 小小希瓦娜\",\"value\":\"至臻 隐龙之子 小小希瓦娜\"},{\"id\":1724145589309019,\"name\":\"小小鸡里奥\",\"value\":\"小小鸡里奥\"},{\"id\":1724145589311023,\"name\":\"灵魂莲华 小小厄斐琉斯\",\"value\":\"灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145589314025,\"name\":\"电玩战魂 小小赫卡里姆\",\"value\":\"电玩战魂 小小赫卡里姆\"},{\"id\":1724145589318027,\"name\":\"丹青妙笔 墨宝\",\"value\":\"丹青妙笔 墨宝\"},{\"id\":1724145589320028,\"name\":\"潮豹主播 墨宝\",\"value\":\"潮豹主播 墨宝\"},{\"id\":1724145589321030,\"name\":\"宝藏船长 墨宝\",\"value\":\"宝藏船长 墨宝\"},{\"id\":1724145589324031,\"name\":\"寻龙踏雪 墨宝\",\"value\":\"寻龙踏雪 墨宝\"},{\"id\":1724145589328032,\"name\":\"神龙尊者 昼日真龙 小小亚索\",\"value\":\"神龙尊者 昼日真龙 小小亚索\"},{\"id\":1724145589331033,\"name\":\"电玩女神 小小娑娜\",\"value\":\"电玩女神 小小娑娜\"},{\"id\":1724145589335034,\"name\":\"灵魂莲华明昼 鳞珑\",\"value\":\"灵魂莲华明昼 鳞珑\"},{\"id\":1724145589338035,\"name\":\"灵魂莲华 小小提莫\",\"value\":\"灵魂莲华 小小提莫\"},{\"id\":1724145589341038,\"name\":\"玉剑传说 小小泰隆\",\"value\":\"玉剑传说 小小泰隆\"},{\"id\":1724145589345040,\"name\":\"心之钢 小小永恩\",\"value\":\"心之钢 小小永恩\"},{\"id\":1724145589348041,\"name\":\"神龙烈焰 小小金克丝\",\"value\":\"神龙烈焰 小小金克丝\"},{\"id\":1724145589349042,\"name\":\"灵魂莲华 小小永恩\",\"value\":\"灵魂莲华 小小永恩\"},{\"id\":1724145589353043,\"name\":\"玉剑传说 小小艾瑞莉娅\",\"value\":\"玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145589357045,\"name\":\"神王 小小德莱厄斯\",\"value\":\"神王 小小德莱厄斯\"},{\"id\":1724145589359049,\"name\":\"至臻 小瑞\",\"value\":\"至臻 小瑞\"},{\"id\":1724145589361050,\"name\":\"至臻玉剑传说 小小艾瑞莉娅\",\"value\":\"至臻玉剑传说 小小艾瑞莉娅\"},{\"id\":1724145589365052,\"name\":\"电玩女神 小小凯特琳\",\"value\":\"电玩女神 小小凯特琳\"},{\"id\":1724145589367056,\"name\":\"剪纸仙灵 小小格温\",\"value\":\"剪纸仙灵 小小格温\"},{\"id\":1724145589370057,\"name\":\"至臻 星辰鳞珑\",\"value\":\"至臻 星辰鳞珑\"},{\"id\":1724145589371063,\"name\":\"神龙尊者 小小李青\",\"value\":\"神龙尊者 小小李青\"},{\"id\":1724145589374065,\"name\":\"太空律动 小小璐璐\",\"value\":\"太空律动 小小璐璐\"},{\"id\":1724145589380066,\"name\":\"幻灵战斗猫 小小金克丝\",\"value\":\"幻灵战斗猫 小小金克丝\"},{\"id\":1724145589381067,\"name\":\"蔷薇绅士 小小杰斯\",\"value\":\"蔷薇绅士 小小杰斯\"},{\"id\":1724145589384070,\"name\":\"烈焰 银河三连星\",\"value\":\"烈焰 银河三连星\"},{\"id\":1724145589388071,\"name\":\"龙腾虎跃 小小瑟提\",\"value\":\"龙腾虎跃 小小瑟提\"},{\"id\":1724145589388074,\"name\":\"斗魂觉醒 小小拉克丝\",\"value\":\"斗魂觉醒 小小拉克丝\"},{\"id\":1724145589391075,\"name\":\"战斗学院 小小杰斯\",\"value\":\"战斗学院 小小杰斯\"},{\"id\":1724145589394078,\"name\":\"未来战士 小小伊泽瑞尔\",\"value\":\"未来战士 小小伊泽瑞尔\"},{\"id\":1724145589398079,\"name\":\"甜心之翎 小小洛\",\"value\":\"甜心之翎 小小洛\"},{\"id\":1724145589402081,\"name\":\"隐龙之子 小小蕾欧娜\",\"value\":\"隐龙之子 小小蕾欧娜\"},{\"id\":1724145589405082,\"name\":\"隐龙之子 小小伊泽瑞尔\",\"value\":\"隐龙之子 小小伊泽瑞尔\"},{\"id\":1724145589407085,\"name\":\"山海绘卷 小小妮蔻\",\"value\":\"山海绘卷 小小妮蔻\"},{\"id\":1724145589409088,\"name\":\"灵魂莲华 小小瑟提\",\"value\":\"灵魂莲华 小小瑟提\"},{\"id\":1724145589413090,\"name\":\"电玩 小小赫卡里姆\",\"value\":\"电玩 小小赫卡里姆\"},{\"id\":1724145589416091,\"name\":\"至臻 灵魂莲华 小小厄斐琉斯\",\"value\":\"至臻 灵魂莲华 小小厄斐琉斯\"},{\"id\":1724145589418092,\"name\":\"灵魂莲华 小小锐雯\",\"value\":\"灵魂莲华 小小锐雯\"},{\"id\":1724145589419095,\"name\":\"无\",\"value\":\"无\"}]},\"placeholder\":\"\",\"property_content_type\":2,\"property_grade\":2,\"property_id\":1684748994607848,\"property_name\":\"小小英雄\",\"property_rule\":{\"max_length\":3200,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1693813190306341,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1693813190309342,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":5,\"property_id\":1693813185625659,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":6,\"property_id\":1703658392078141,\"property_name\":\"神话英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":7,\"property_id\":1703658436816168,\"property_name\":\"小小英雄数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":8,\"property_id\":1703658456760436,\"property_name\":\"棋盘数\",\"property_rule\":{\"max_length\":10,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1703658500720790,\"name\":\"黑铁\",\"value\":\"黑铁\"},{\"id\":1703658500723791,\"name\":\"黄铜\",\"value\":\"黄铜\"},{\"id\":1703658500726793,\"name\":\"白银\",\"value\":\"白银\"},{\"id\":1703658500729794,\"name\":\"黄金\",\"value\":\"黄金\"},{\"id\":1703658500732796,\"name\":\"铂金\",\"value\":\"铂金\"},{\"id\":1703658500735797,\"name\":\"翡翠\",\"value\":\"翡翠\"},{\"id\":1703658500738799,\"name\":\"钻石\",\"value\":\"钻石\"},{\"id\":1703658500740800,\"name\":\"超凡大师\",\"value\":\"超凡大师\"},{\"id\":1703658500750805,\"name\":\"傲视宗师\",\"value\":\"傲视宗师\"},{\"id\":1703658500753807,\"name\":\"最强王者\",\"value\":\"最强王者\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":9,\"property_id\":1703658490908566,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":10,\"required\":false},\"visible\":true}]},\"game_id\":1012010,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":1,\"property_id\":1684748994120599,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^(?![0-9])(?!\\\\d+$)[^\\\\u4e00-\\\\u9fa5]{6,20}$\",\"pattern_msg\":\"不允许全数字且数字开头，不能有中文，长度在6到20之间\",\"required\":true},\"visible\":true},{\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1684748994125602,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1684748994145612,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1684748994471786,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"15r38pdi9t40z\"}}\n";
            }

            String alibaba_jym_item_property_def_query_response = JSONObject.parseObject(attr).getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    if(StringUtils.isNotEmpty(goodsInfo.getCarrierName())) {
                        if (goodsInfo.getCarrierName().equals("微信")) {
                            goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("vx"+getAccount(), aesKey)));
                        }else {
                            goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(getAccount(), aesKey)));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();

            String ext_properties = jsonObject.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF11())?goodsInfo.getF11():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("小小英雄")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF2());
                    wqAll = reIds(wqAll, goodsInfo.getF3());
                    wqAll = reIds(wqAll, goodsInfo.getF4());
                    wqAll = reIds(wqAll, goodsInfo.getF5());
                    List<GameAttribute> gameAttributes = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    }else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("攻击特效")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF10());
                    wqAll = reIds(wqAll, goodsInfo.getF16());
                    List<GameAttribute> gameAttributes = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    }else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("热门棋盘")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF6());
                    wqAll = reIds(wqAll, goodsInfo.getF7());
                    wqAll = reIds(wqAll, goodsInfo.getF8());
                    List<GameAttribute> gameAttributes = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    }else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    if(StringUtils.isNotEmpty(goodsInfo.getF1())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF1()));
                        if(gameAttribute1.getFieldName().equals("可二次实名")){
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "可二次实名"));
                        }else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                        }
                    }else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("神话英雄数")) {
                    if(StringUtil.isNotEmpty(goodsInfo.getF3())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), String.valueOf(goodsInfo.getF3().split(",").length)));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("小小英雄数")) {
                    if(StringUtil.isNotEmpty(goodsInfo.getF12())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), goodsInfo.getF12()));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("棋盘数")) {
                    if(StringUtil.isNotEmpty(goodsInfo.getF13())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), goodsInfo.getF13()));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("段位")) {
                    if(StringUtil.isNotEmpty(goodsInfo.getF15())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF15()));
                        String string = "[{\"id\":1703657987519003,\"name\":\"黑铁\",\"value\":\"黑铁\"},{\"id\":1703657987524007,\"name\":\"黄铜\",\"value\":\"黄铜\"},{\"id\":1703657987527009,\"name\":\"白银\",\"value\":\"白银\"},{\"id\":1703657987530010,\"name\":\"黄金\",\"value\":\"黄金\"},{\"id\":1703657987534013,\"name\":\"铂金\",\"value\":\"铂金\"},{\"id\":1703657987536015,\"name\":\"翡翠\",\"value\":\"翡翠\"},{\"id\":1703657987538017,\"name\":\"钻石\",\"value\":\"钻石\"},{\"id\":1703657987541019,\"name\":\"超凡大师\",\"value\":\"超凡大师\"},{\"id\":1703657987546020,\"name\":\"傲视宗师\",\"value\":\"傲视宗师\"},{\"id\":1703657987548021,\"name\":\"最强王者\",\"value\":\"最强王者\"}]\n";
                        JSONArray jsonArray2 = JSONArray.parseArray(string);
                        for(Object p : jsonArray2){
                            if(JSONObject.parseObject(p.toString()).getString("name").equals(gameAttribute1.getFieldName())){
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), JSONObject.parseObject(p.toString()).getString("name")));
                                break;
                            }
                        }
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(Long.valueOf(serverId));
            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //暗区突围
        if ("暗区突围".equals(goodsInfo.getGameName())){
            String attr = "";
            String regional = goodsInfo.getSystemName()+goodsInfo.getCarrierName();
            String serverId = "1645668332693138";
            String secondCategoryId = "1705286218538114";
            if(regional.equals("安卓QQ")){
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1470047031091455,\"platform_id\":2,\"platform_ids\":{\"number\":[2]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1705286218558119,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1705286218873257,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":50,\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1705286218878260,\"property_name\":\"仓库价值\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":4,\"property_id\":1705286218884263,\"property_name\":\"柯恩币\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1705286218896267,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1705286218901270,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":5,\"property_id\":1705286218891265,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true}]},\"game_id\":1012857,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"category_attr_type\":0,\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1705286218563122,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1705286218576129,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1705286218600142,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1705286218817232,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"16kyezts135qi\"}}\n";
            }else if(regional.equals("苹果QQ")){
                secondCategoryId = "1705286250454851";
                attr = "{\"alibaba_jym_item_property_def_query_response\":{\"result\":{\"addl_service\":{\"bargain\":false},\"client_info\":{\"id\":1470047031280559,\"platform_id\":3,\"platform_ids\":{\"number\":[3]}},\"description\":{\"property_name\":\"商品描述\",\"property_rule\":{\"max_length\":200,\"required\":false},\"visible\":true},\"ext_properties\":{\"goods_property_dto\":[{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1705286250466857,\"property_name\":\"角色等级\",\"property_rule\":{\"max_length\":5,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1705286250745170,\"property_name\":\"段位\",\"property_rule\":{\"max_length\":50,\"required\":false},\"visible\":true},{\"category_attr_type\":0,\"content_type\":1,\"options\":{\"goods_property_option_dto\":[{\"id\":1705286250756178,\"name\":\"可二次实名\",\"value\":\"可二次实名\"},{\"id\":1705286250761183,\"name\":\"不可二次实名\",\"value\":\"不可二次实名\"}]},\"placeholder\":\"\",\"property_content_type\":1,\"property_grade\":3,\"property_id\":1705286250750174,\"property_name\":\"是否可二次实名\",\"property_rule\":{\"max_length\":10,\"required\":true},\"visible\":true}]},\"game_id\":1012857,\"image\":{\"property_rule\":{\"max_count\":20,\"max_size\":50,\"required\":true},\"visible\":true},\"key_properties\":{\"goods_property_dto\":[{\"property_name\":\"游戏\",\"visible\":false},{\"property_name\":\"客户端\",\"visible\":false},{\"property_name\":\"服务器\",\"visible\":true}]},\"price\":{\"property_rule\":{\"highest_price\":999999,\"lowest_price\":10,\"required\":true},\"visible\":true},\"seller_account_properties\":{\"goods_property_dto\":[{\"category_attr_type\":0,\"content_type\":2,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":1,\"property_id\":1705286250470862,\"property_name\":\"游戏帐号\",\"property_rule\":{\"max_length\":40,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":3,\"placeholder\":\"温馨提示：帐号密码正确的商品，可大幅缩短售出时间\",\"property_content_type\":3,\"property_grade\":2,\"property_id\":1705286250490881,\"property_name\":\"游戏密码\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":13,\"placeholder\":\"\",\"property_content_type\":3,\"property_grade\":3,\"property_id\":1705286250512896,\"property_name\":\"角色名称\",\"property_rule\":{\"max_length\":20,\"required\":true},\"visible\":true},{\"category_attr_type\":0,\"content_type\":10,\"placeholder\":\"\",\"property_content_type\":5,\"property_grade\":14,\"property_id\":1705286250713144,\"property_name\":\"手机号码\",\"property_rule\":{\"max_length\":11,\"pattern\":\"^1[3|4|5|6|7|8|9][0-9]\\\\d{8}$\",\"required\":true},\"visible\":true}]},\"storage\":{\"default_value\":\"1\",\"property_rule\":{\"min\":1,\"pattern\":\"^[0-9]\\\\d*$\",\"required\":false},\"visible\":false},\"title\":{\"property_name\":\"商品标题\",\"property_rule\":{\"max_length\":15,\"min_length\":5,\"required\":true},\"visible\":true}},\"succeed\":true,\"request_id\":\"16l3sb3ozz5op\"}}\n";
            }else {
                throw new GlobalException("暂不支持微信区!");
            }
            String alibaba_jym_item_property_def_query_response = JSONObject.parseObject(attr).getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(getAccount(), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();

            String ext_properties = jsonObject.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "30"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("仓库价值")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF4())?goodsInfo.getF4():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("柯恩币")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF5())?goodsInfo.getF5():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    if(StringUtils.isNotEmpty(goodsInfo.getF3())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF3()));
                        if(gameAttribute1.getFieldName().equals("可二次实名")){
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "可二次实名"));
                        }else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                        }
                    }else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(Long.valueOf(serverId));
            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //英雄联盟
        if (GameTypeConstant.LOLID.equals(goodsInfo.getGameId())) {

            JSONObject jsonObject = JSONObject.parseObject(LCConstant.jymLolSX);
            String secondCategoryId = "1654668795673037";
            JSONArray jsonArray1 = JSONArray.parseArray(LCConstant.jymLolArea);
            long serviceId = 0;
            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("name").equals(goodsInfo.getServerName())) {
                    serviceId = JSONObject.parseObject(o.toString()).getLong("id");
                }
            }

            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("常登陆地址")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("a4e87561f24e36db5568cb535c41bd24", aesKey)));
                }
            }

            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray3 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray3) {
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF31()) ? goodsInfo.getF31() : "30"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("段位")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF2()));
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                        JSONArray jsonArray4 = JSONArray.parseArray(goods_property_option_dto);
                        for (Object p : jsonArray4) {
                            if (JSONObject.parseObject(p.toString()).getString("name").contains(gameAttribute1.getFieldName().replace("未定级","无"))) {
                                goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                                goodsPropertyValueDto1.setValue(JSONObject.parseObject(p.toString()).getString("value"));
                                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                                break;
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("英雄数量")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF3()) ? goodsInfo.getF3() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("皮肤数量")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF4()) ? goodsInfo.getF4() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("炫彩皮肤数量")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF5()) ? goodsInfo.getF5() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号绑定")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("1");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("成人号")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("是");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("商家在线")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("全天在线");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    if (StringUtils.isNotEmpty(goodsInfo.getF1())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF1()));
                        if (gameAttribute1.getFieldName().equals("有修改人脸机会/实名是本人")) {
                            goodsPropertyValueDto1.setValue("可二次实名");
                        } else {
                            goodsPropertyValueDto1.setValue("不可二次实名");
                        }
                    } else {
                        goodsPropertyValueDto1.setValue("不可二次实名");
                    }
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("皮肤")) {
                    String pfIds = "";
                    pfIds = reIds(pfIds, goodsInfo.getF7());
                    pfIds = reIds(pfIds, goodsInfo.getF8());
                    pfIds = reIds(pfIds, goodsInfo.getF9());
                    pfIds = reIds(pfIds, goodsInfo.getF10());
                    pfIds = reIds(pfIds, goodsInfo.getF11());
                    pfIds = reIds(pfIds, goodsInfo.getF12());
                    pfIds = reIds(pfIds, goodsInfo.getF13());
                    pfIds = reIds(pfIds, goodsInfo.getF14());
                    pfIds = reIds(pfIds, goodsInfo.getF15());
                    pfIds = reIds(pfIds, goodsInfo.getF16());
                    pfIds = reIds(pfIds, goodsInfo.getF17());
                    pfIds = reIds(pfIds, goodsInfo.getF24());
                    pfIds = reIds(pfIds, goodsInfo.getF25());
                    pfIds = reIds(pfIds, goodsInfo.getF26());
                    pfIds = reIds(pfIds, goodsInfo.getF27());
                    pfIds = reIds(pfIds, goodsInfo.getF28());
                    pfIds = reIds(pfIds, goodsInfo.getF29());
                    pfIds = reIds(pfIds, goodsInfo.getF30());
                    List<GameAttribute> gameAttributes = getGameAttributs(pfIds);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("臻彩")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF24())) {
                        List<GameAttribute> gameAttributs = getGameAttributs(goodsInfo.getF24());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                        JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                        String value = "";
                        for (GameAttribute gameAttribute1 : gameAttributs) {
                            for (Object p : jsonArray2) {
                                if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(p.toString()).getString("value"))) {
                                    value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                }
                            }
                        }
                        if (StringUtils.isNotEmpty(value)) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("终极数")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF17())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), String.valueOf(goodsInfo.getF17().split(",").length)));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                    }
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("神话数")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF18())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), String.valueOf(goodsInfo.getF18())));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);


            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
                break;
            }
            String client_info = jsonObject1.getString("client_info");
            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //英雄联盟手游
        if (GameTypeConstant.LOLMOBILEID.equals(goodsInfo.getGameId())) {
            String partition = goodsInfo.getSystemName() + goodsInfo.getCarrierName();
            String lolMData = GameJYMKeyUtil.lolMData(partition);
            String secondCategoryId = "";
            if (Objects.equals("安卓QQ", partition)) {
                secondCategoryId = "1652861381398369";
            } else if (Objects.equals("安卓微信", partition)) {
                secondCategoryId = "1652861430355356";
            } else if (Objects.equals("苹果QQ", partition)) {
                secondCategoryId = "1652861482573571";
            } else if (Objects.equals("苹果微信", partition)) {
                secondCategoryId = "1652861525432266";
            }
            long serviceId = 0;
            if (Objects.equals("QQ", goodsInfo.getCarrierName())) {
                serviceId = 1633681463744104l;
            } else {
                serviceId = 1633681476979165l;
            }
            JSONObject jsonObject = JSONObject.parseObject(lolMData);

            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(extractPwd, aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色名称")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("无"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("18525252525", aesKey)));
                }
            }

            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray3 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray3) {
                goodsPropertyValueDto1 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("召唤师等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "30"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("段位")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF3())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF3()));
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                        JSONArray jsonArray4 = JSONArray.parseArray(goods_property_option_dto);
                        for (Object p : jsonArray4) {
                            if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("name"))) {
                                goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                                goodsPropertyValueDto1.setValue(JSONObject.parseObject(p.toString()).getString("value"));
                                propertyValueDtoListArr.add(goodsPropertyValueDto1);
                                break;
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("英雄数量")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF5()) ? goodsInfo.getF5() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("皮肤数量")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF6()) ? goodsInfo.getF6() : "0"));
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号绑定")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("1");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("商家在线")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("全天在线");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("成人号")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    goodsPropertyValueDto1.setValue("无");
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    goodsPropertyValueDto1.setPropertyId(JSONObject.parseObject(o.toString()).getLong("property_id"));
                    if (StringUtils.isNotEmpty(goodsInfo.getF4())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF4()));
                        if (gameAttribute1.getFieldName().equals("可二次实名")) {
                            goodsPropertyValueDto1.setValue("可二次实名");
                        } else {
                            goodsPropertyValueDto1.setValue("不可二次实名");
                        }
                    } else {
                        goodsPropertyValueDto1.setValue("不可二次实名");
                    }
                    propertyValueDtoListArr.add(goodsPropertyValueDto1);
                }

                String pfIds = "";
                pfIds = reIds(pfIds, goodsInfo.getF1());
                pfIds = reIds(pfIds, goodsInfo.getF2());
                pfIds = reIds(pfIds, goodsInfo.getF7());
                pfIds = reIds(pfIds, goodsInfo.getF8());
                pfIds = reIds(pfIds, goodsInfo.getF9());
                pfIds = reIds(pfIds, goodsInfo.getF10());
                List<GameAttribute> gameAttributes = getGameAttributs(pfIds);

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("传说皮肤")) {

                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("史诗皮肤")) {
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().replace(" ", "").equals(JSONObject.parseObject(p.toString()).getString("value").replace(" ", ""))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);


            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
                break;
            }
            String client_info = jsonObject1.getString("client_info");
            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);

        }
        //原神
        if (GameTypeConstant.YSID.equals(goodsInfo.getGameId())) {
            String regional = goodsInfo.getCarrierName();
            JSONObject jsonObject = new JSONObject();
            String secondCategoryId = "";
            Long serviceId = 0l;
            if (regional.equals("哔哩哔哩")) {
                jsonObject = JSONObject.parseObject(LCConstant.ysBF);
                secondCategoryId = "1642583177628183";
                serviceId = 1580902730218531l;
            } else if (regional.equals("游戏官方")) {
                jsonObject = JSONObject.parseObject(LCConstant.ysGF);
                secondCategoryId = "1703731630906009";
                serviceId = 1580902730218531l;
            }
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色名称")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("问客服"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("送邮帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("送邮密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("123456"), aesKey)));
                }
            }

            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO> multiPropertyValueDTOS = new ArrayList<>();

            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("冒险等阶")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF7()) ? goodsInfo.getF7() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("总黄数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF8()) ? goodsInfo.getF8() : "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("五星角色列表")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF11())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfo.getF11());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributeList) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("value"))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO multiPropertyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO();
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO propertyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO();
                                        List<AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO> propertyValueDTOS = new ArrayList<>();
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO childPropertyKeyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO();
                                        List<AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO> childPropertyKeyValueDTOS = new ArrayList<>();
                                        childPropertyKeyValueDTO.setKey("命座");
                                        childPropertyKeyValueDTO.setValue(gameAttribute1.getFieldName().substring(0, 2).replace("满", "6"));
                                        childPropertyKeyValueDTOS.add(childPropertyKeyValueDTO);

                                        propertyValueDTO.setValue(JSONObject.parseObject(p.toString()).getString("value"));
                                        propertyValueDTO.setChildPropertyKeyValueList(childPropertyKeyValueDTOS);
                                        propertyValueDTOS.add(propertyValueDTO);
                                        multiPropertyValueDTO.setPropertyName("角色");
                                        multiPropertyValueDTO.setPropertyValueList(propertyValueDTOS);
                                        multiPropertyValueDTOS.add(multiPropertyValueDTO);
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("满命角色")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF11())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfo.getF11());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributeList) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("value")) && gameAttribute1.getFieldName().contains("满")) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("五星武器列表")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF17())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfo.getF17());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            List<String> list = gameAttributeList.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributeList) {
                                for (Object p : jsonArray2) {
                                    if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("value"))) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO multiPropertyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO();
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO propertyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO();
                                        List<AlibabaJymItemExternalGoodsBatchPublishRequest.PropertyValueDTO> propertyValueDTOS = new ArrayList<>();
                                        AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO childPropertyKeyValueDTO
                                                = new AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO();
                                        List<AlibabaJymItemExternalGoodsBatchPublishRequest.ChildPropertyKeyValueDTO> childPropertyKeyValueDTOS = new ArrayList<>();
                                        childPropertyKeyValueDTO.setKey("精炼度");
                                        childPropertyKeyValueDTO.setValue(gameAttribute1.getFieldName().substring(1, 2) + "精");
                                        childPropertyKeyValueDTOS.add(childPropertyKeyValueDTO);

                                        propertyValueDTO.setValue(JSONObject.parseObject(p.toString()).getString("value"));
                                        propertyValueDTO.setChildPropertyKeyValueList(childPropertyKeyValueDTOS);
                                        propertyValueDTOS.add(propertyValueDTO);
                                        multiPropertyValueDTO.setPropertyName("武器");
                                        multiPropertyValueDTO.setPropertyValueList(propertyValueDTOS);
                                        multiPropertyValueDTOS.add(multiPropertyValueDTO);
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }

                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号绑定")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF2()));
                        if (gameAttribute1.getFieldName().contains("未实名")) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "手机可换绑，邮箱未实名（送邮）"));
                        } else if (gameAttribute1.getFieldName().contains("已实名")) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "手机可换绑，邮箱已实名（送邮）"));
                        } else if (gameAttribute1.getFieldName().contains("不送邮")) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "手机可换绑，不送邮"));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "手机可换绑，邮箱未绑"));
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "手机可换绑，邮箱未绑"));
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);
//            goodsPublishDto.setMultiPropertyValueList(multiPropertyValueDTOS);
            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
                break;
            }
            String client_info = jsonObject1.getString("client_info");
            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //永劫无间
        if (GameTypeConstant.YJWJID.equals(goodsInfo.getGameId())) {
            String regional = goodsInfo.getGroupName();
            JSONObject jsonObject = JSONObject.parseObject(LCConstant.getYJWJOptions(regional));
            String secondCategoryId = "";
            Long serviceId = 0l;
            if (regional.equals("网易")) {
                secondCategoryId = "1663223742767095";
                serviceId = 1617763197429701l;
            } else if (regional.equals("Steam")) {
                secondCategoryId = "1665303250899047";
                serviceId = 1580902730218531l;
            } else if (regional.equals("Epic")) {
                secondCategoryId = "1665303331823210";
                serviceId = 1580902730218531l;
            }
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色名称")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("问客服"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("送邮帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("送邮密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("123456"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO> multiPropertyValueDTOS = new ArrayList<>();

            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("红皮数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF29())?goodsInfo.getF29():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("金皮数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF31())?goodsInfo.getF31():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("幻丝数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("版本")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "标准版"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号类型")) {

                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getServerName())?goodsInfo.getServerName():"网易手机账帐号"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("英雄皮肤")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF4());
                    wqAll = reIds(wqAll, goodsInfo.getF5());
                    wqAll = reIds(wqAll, goodsInfo.getF6());
                    wqAll = reIds(wqAll, goodsInfo.getF7());
                    wqAll = reIds(wqAll, goodsInfo.getF8());
                    wqAll = reIds(wqAll, goodsInfo.getF9());
                    wqAll = reIds(wqAll, goodsInfo.getF10());
                    wqAll = reIds(wqAll, goodsInfo.getF11());
                    wqAll = reIds(wqAll, goodsInfo.getF12());
                    wqAll = reIds(wqAll, goodsInfo.getF13());
                    wqAll = reIds(wqAll, goodsInfo.getF14());
                    wqAll = reIds(wqAll, goodsInfo.getF15());
                    wqAll = reIds(wqAll, goodsInfo.getF16());
                    wqAll = reIds(wqAll, goodsInfo.getF17());
                    wqAll = reIds(wqAll, goodsInfo.getF18());
                    wqAll = reIds(wqAll, goodsInfo.getF19());
                    wqAll = reIds(wqAll, goodsInfo.getF20());
                    wqAll = reIds(wqAll, goodsInfo.getF21());
                    wqAll = reIds(wqAll, goodsInfo.getF22());
                    wqAll = reIds(wqAll, goodsInfo.getF41());
                    wqAll = reIds(wqAll, goodsInfo.getF53());
                    List<GameAttribute> gameAttributs = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributs)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributs) {
                                for (Object p : jsonArray2) {
                                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("武器皮肤")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF2());
                    wqAll = reIds(wqAll, goodsInfo.getF3());
                    wqAll = reIds(wqAll, goodsInfo.getF23());
                    wqAll = reIds(wqAll, goodsInfo.getF24());
                    wqAll = reIds(wqAll, goodsInfo.getF25());
                    wqAll = reIds(wqAll, goodsInfo.getF26());
                    wqAll = reIds(wqAll, goodsInfo.getF27());
                    wqAll = reIds(wqAll, goodsInfo.getF28());
                    wqAll = reIds(wqAll, goodsInfo.getF29());
                    wqAll = reIds(wqAll, goodsInfo.getF42());
                    wqAll = reIds(wqAll, goodsInfo.getF43());
                    wqAll = reIds(wqAll, goodsInfo.getF32());
                    wqAll = reIds(wqAll, goodsInfo.getF33());
                    wqAll = reIds(wqAll, goodsInfo.getF34());
                    wqAll = reIds(wqAll, goodsInfo.getF35());
                    wqAll = reIds(wqAll, goodsInfo.getF52());
                    wqAll = reIds(wqAll, goodsInfo.getF36());
                    wqAll = reIds(wqAll, goodsInfo.getF45());
                    wqAll = reIds(wqAll, goodsInfo.getF37());
                    wqAll = reIds(wqAll, goodsInfo.getF38());
                    List<GameAttribute> gameAttributs = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributs)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributs) {
                                for (Object p : jsonArray2) {
                                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("挂饰皮肤")) {
                    String wqAll = "";
                    wqAll = reIds(wqAll, goodsInfo.getF39());
                    wqAll = reIds(wqAll, goodsInfo.getF40());
                    wqAll = reIds(wqAll, goodsInfo.getF51());
                    List<GameAttribute> gameAttributs = getGameAttributs(wqAll);
                    if (CollectionUtils.isNotEmpty(gameAttributs)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributs) {
                                for (Object p : jsonArray2) {
                                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("谪星极品皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF3())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF3())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF3(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("季沧海稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF7(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("宁红叶稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF4())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF4())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF4(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("特木尔稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF5())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF5())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF5(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("迦南稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF6(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("胡桃稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF8(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("天海稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF9())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF9())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF9(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("妖刀姬稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF10())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF10())) {
                            String options = "{\"goods_property_option_dto\":[{\"id\":1711076052691862,\"name\":\"阴阳师·蛉魂梦使\",\"value\":\"阴阳师·蛉魂梦使\"},{\"id\":1711076052692866,\"name\":\"妖刀姬\",\"value\":\"妖刀姬\"},{\"id\":1711076052695867,\"name\":\"阴阳师·赤影妖刀姬\",\"value\":\"阴阳师·赤影妖刀姬\"},{\"id\":1711076052698872,\"name\":\"决战平安京·御神之刃\",\"value\":\"决战平安京·御神之刃\"},{\"id\":1711076052702873,\"name\":\"阴阳师·樱雨刀舞\",\"value\":\"阴阳师·樱雨刀舞\"},{\"id\":1711076052705877,\"name\":\"决战平安京·热海白珊\",\"value\":\"决战平安京·热海白珊\"},{\"id\":1711076052707878,\"name\":\"决战平安京·神罚之光\",\"value\":\"决战平安京·神罚之光\"},{\"id\":1711076052711885,\"name\":\"决战平安京·朔夜游方\",\"value\":\"决战平安京·朔夜游方\"},{\"id\":1711076052714887,\"name\":\"阴阳师·灼舞桃节\",\"value\":\"阴阳师·灼舞桃节\"},{\"id\":1711076052717890,\"name\":\"流火映真\",\"value\":\"流火映真\"}]}\n";
                            gjYjwjShuXing(goodsInfo.getF10(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("岳山稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF12())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF12())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF12(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("崔三娘稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF11())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF11())) {
                            String options = "{\"goods_property_option_dto\":[{\"id\":1711076072911406,\"name\":\"海之奇\",\"value\":\"海之奇\"},{\"id\":1711076072913408,\"name\":\"泣珠龙纱\",\"value\":\"泣珠龙纱\"},{\"id\":1711076072915409,\"name\":\"探海裙\",\"value\":\"探海裙\"},{\"id\":1711076072919411,\"name\":\"赤雾烟霞\",\"value\":\"赤雾烟霞\"},{\"id\":1711076072921412,\"name\":\"夏日派对·弄潮逐浪\",\"value\":\"夏日派对·弄潮逐浪\"},{\"id\":1711076072922413,\"name\":\"掌珠仙子\",\"value\":\"掌珠仙子\"},{\"id\":1711076072924416,\"name\":\"蛰龙吟\",\"value\":\"蛰龙吟\"},{\"id\":1711076072926417,\"name\":\"龙之道·无拘\",\"value\":\"龙之道·无拘\"},{\"id\":1711076072929418,\"name\":\"伏波龙女\",\"value\":\"伏波龙女\"},{\"id\":1711076072932420,\"name\":\"怒浪\",\"value\":\"怒浪\"},{\"id\":1711076072934422,\"name\":\"镇海龙\",\"value\":\"镇海龙\"},{\"id\":1711076072938425,\"name\":\"巨鲸客\",\"value\":\"巨鲸客\"},{\"id\":1711076072940427,\"name\":\"观山海·文鳐\",\"value\":\"观山海·文鳐\"},{\"id\":1711076072942428,\"name\":\"逆水寒·鸢纱\",\"value\":\"逆水寒·鸢纱\"},{\"id\":1711076072944429,\"name\":\"沸海发\",\"value\":\"沸海发\"},{\"id\":1711076072950431,\"name\":\"弄潮发\",\"value\":\"弄潮发\"},{\"id\":1711076072954432,\"name\":\"碎浪发\",\"value\":\"碎浪发\"},{\"id\":1711076072956434,\"name\":\"激浪发\",\"value\":\"激浪发\"},{\"id\":1711076072957436,\"name\":\"赤滔发\",\"value\":\"赤滔发\"},{\"id\":1711076072960437,\"name\":\"浩渺发\",\"value\":\"浩渺发\"},{\"id\":1711076072962438,\"name\":\"安澜发\",\"value\":\"安澜发\"},{\"id\":1711076072966440,\"name\":\"鲸海发\",\"value\":\"鲸海发\"},{\"id\":1711076072968441,\"name\":\"观山海·夜游发\",\"value\":\"观山海·夜游发\"},{\"id\":1711076072972442,\"name\":\"逆水寒·鸢发\",\"value\":\"逆水寒·鸢发\"}]}\n";
                            gjYjwjShuXing(goodsInfo.getF11(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("无尘稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF13())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF13())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF13(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("顾清寒稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF14())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF14())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF14(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("武田信忠稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF16())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF16())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF16(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("殷紫萍稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF17())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF17())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF17(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("季莹莹稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF20())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF20())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF20(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("胡为稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF19())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF19())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF19(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("玉玲珑稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF15())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF15())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF15(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("沈妙稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF18())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF18())) {
                            String options = "{\"goods_property_option_dto\":[{\"id\":1711076152660047,\"name\":\"朱雀星衣\",\"value\":\"朱雀星衣\"},{\"id\":1711076152663050,\"name\":\"絮云衣\",\"value\":\"絮云衣\"},{\"id\":1711076152666051,\"name\":\"绝伦袍\",\"value\":\"绝伦袍\"},{\"id\":1711076152668053,\"name\":\"2674千机喵\",\"value\":\"2674千机喵\"},{\"id\":1711076152670054,\"name\":\"西行劫·紫衣仙子\",\"value\":\"西行劫·紫衣仙子\"},{\"id\":1711076152674058,\"name\":\"观山海·腓腓\",\"value\":\"观山海·腓腓\"},{\"id\":1711076152677060,\"name\":\"武道无穷·咏春\",\"value\":\"武道无穷·咏春\"},{\"id\":1711076152697073,\"name\":\"街头狂欢·涂鸦少女\",\"value\":\"街头狂欢·涂鸦少女\"},{\"id\":1711076152730090,\"name\":\"斗罗大陆·唐舞桐\",\"value\":\"斗罗大陆·唐舞桐\"},{\"id\":1711076152732091,\"name\":\"绮云衫\",\"value\":\"绮云衫\"},{\"id\":1711076152735093,\"name\":\"千丝发\",\"value\":\"千丝发\"},{\"id\":1711076152737095,\"name\":\"天南发\",\"value\":\"天南发\"},{\"id\":1711076152740096,\"name\":\"百灵发\",\"value\":\"百灵发\"},{\"id\":1711076152744098,\"name\":\"韶光发\",\"value\":\"韶光发\"},{\"id\":1711076152748100,\"name\":\"观山海·忘忧发\",\"value\":\"观山海·忘忧发\"},{\"id\":1711076152751101,\"name\":\"街头狂欢·撞色艺术发\",\"value\":\"街头狂欢·撞色艺术发\"},{\"id\":1711076152753104,\"name\":\"斗罗大陆·龙蝶发\",\"value\":\"斗罗大陆·龙蝶发\"}]}\n";
                            gjYjwjShuXing(goodsInfo.getF18(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("哈迪稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF21())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF21())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF21(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("稀有飞索皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF23())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF23())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF23(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("长剑稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF24())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF24())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF24(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("太刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF25())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF25())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF25(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("双戟稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF34())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF34())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF34(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
//                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("棍稀有皮")) {
//                    if (StringUtils.isNotEmpty(goodsInfo.getF29())) {
//                        if (StringUtils.isNotEmpty(goodsInfo.getF29())) {
//                            String options = JSONObject.parseObject(o.toString()).getString("options");
//                            gjYjwjShuXing(goodsInfo.getF29(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
//                        }
//                    }
//                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("斩马刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF27())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF27())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF27(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
//                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("扇稀有皮")) {
//                    if (StringUtils.isNotEmpty(goodsInfo.getF31())) {
//                        if (StringUtils.isNotEmpty(goodsInfo.getF31())) {
//                            String options = JSONObject.parseObject(o.toString()).getString("options");
//                            gjYjwjShuXing(goodsInfo.getF31(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
//                        }
//                    }
//                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("阔刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF26())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF26())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF26(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("双截棍稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF32())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF32())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF32(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("匕首稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF30())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF30())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF30(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("万刃轮稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF37())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF37())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF37(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("双刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF33())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF33())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF33(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("弓箭稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF36())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF36())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF36(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("专属发型")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF40())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF40())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF40(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject1.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        if ("永劫无间手游".equals(goodsInfo.getGameName())) {
            JSONObject jsonObject = JSONObject.parseObject(LCConstant.getYJWJSY());
            String secondCategoryId = "1722232998837486";
            Long serviceId = 1711942647879191l;
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(getAccount(), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();

            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);


            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("红皮数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF21())?goodsInfo.getF21():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("金皮数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF22())?goodsInfo.getF22():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号类型")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getCarrierName())?goodsInfo.getCarrierName()+"帐号":"网易手机账帐号"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("收藏值")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF20())?goodsInfo.getF20():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("宁红夜稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF17())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF17(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("天海稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF2(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("特木尔稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF1())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF1(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("土御门胡桃稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF18())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF18(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("迦南稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF19())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF19(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("季沧海稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF3())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF3(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("长剑稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF5())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF5(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("太刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF6(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("阔刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF7(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("匕首稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF8())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF10(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("五眼铳稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF11())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF11(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("弓箭稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF12())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF12(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("火炮稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF14())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF14(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("鸟铳稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF24())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF24(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("双刀稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF10())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF10(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("连弩稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF13())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF13(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("岳山稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF4())) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        gjYjwjShuXing(goodsInfo.getF4(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("长枪稀有皮")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF16())) {
                        if (StringUtils.isNotEmpty(goodsInfo.getF16())) {
                            String options = JSONObject.parseObject(o.toString()).getString("options");
                            gjYjwjShuXing(goodsInfo.getF16(),options,propertyValueDtoListArr,JSONObject.parseObject(o.toString()).getString("property_id"));
                        }
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject1.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);
            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //火影忍者
        if (GameTypeConstant.HYRZID.equals(goodsInfo.getGameId())) {
            String regional = goodsInfo.getSystemName() + goodsInfo.getCarrierName();
            JSONObject jsonObject = new JSONObject();
            String secondCategoryId = "";
            Long serviceId = 0l;
            if (regional.equals("安卓QQ")) {
                serviceId = 821943l;
                secondCategoryId = "1654583272763738";
                jsonObject = JSONObject.parseObject(LCConstant.hyAZQQ);
            } else if (regional.equals("安卓微信")) {
                serviceId = 1515759538110230l;
                secondCategoryId = "1654583355764076";
                jsonObject = JSONObject.parseObject(LCConstant.hyAZWX);
            } else if (regional.equals("苹果QQ")) {
                serviceId = 821943l;
                secondCategoryId = "1654583513752022";
                jsonObject = JSONObject.parseObject(LCConstant.hyPGQQ);
            } else if (regional.equals("苹果微信")) {
                serviceId = 1515759538110230l;
                secondCategoryId = "1654583586130392";
                jsonObject = JSONObject.parseObject(LCConstant.hyPGWX);
            }
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色名称")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("问客服"), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);
            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("VIP等级")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF3())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF3()));
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), gameAttribute1.getFieldName().replace("V", "").replace("无", "1")));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "1"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("S忍数量")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF1())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), goodsInfo.getF1()));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("A忍数量")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF2())) {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), goodsInfo.getF2()));
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("S忍")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF5())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfo.getF5());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            List<String> list = gameAttributeList.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributeList) {
                                for (Object p : jsonArray2) {
                                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            } else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("A忍")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF6())) {
                        List<GameAttribute> gameAttributeList = getGameAttributs(goodsInfo.getF6());
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            List<String> list = gameAttributeList.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributeList) {
                                for (Object p : jsonArray2) {
                                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            } else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("战斗力")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF7()));
                        if (gameAttribute1.getFieldName().equals("可改二次")) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "可二次实名"));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject1.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        //无畏契约
        if (GameTypeConstant.WWQY.equals(goodsInfo.getGameName())){
            String secondCategoryId = "1688119526472436";
            Long serviceId = 1688115777354488l;
            JSONObject jsonObject = JSONObject.parseObject(LCConstant.jymWWQYQQ);
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);
            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("帐号等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), StringUtils.isNotEmpty(goodsInfo.getF26())?goodsInfo.getF26():"0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("段位")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("已解锁英雄")) {
                    String options = JSONObject.parseObject(o.toString()).getString("options");
                    if (StringUtils.isNotEmpty(options)) {
                        String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                        JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                        String value = "";
                        for (Object p : jsonArray2) {
                            if (goodsInfo.getDes().contains(JSONObject.parseObject(p.toString()).getString("value"))) {
                                value += "," + JSONObject.parseObject(p.toString()).getString("value");
                            }
                        }
                        if (StringUtils.isNotEmpty(value)) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不死鸟"));
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("热门皮肤数")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "0"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("卓越皮肤")) {
                    String pfIds = "";
                    pfIds = reIds(pfIds, goodsInfo.getF6());
                    pfIds = reIds(pfIds, goodsInfo.getF9());
                    pfIds = reIds(pfIds, goodsInfo.getF10());
                    pfIds = reIds(pfIds, goodsInfo.getF14());
                    pfIds = reIds(pfIds, goodsInfo.getF20());
                    pfIds = reIds(pfIds, goodsInfo.getF11());
                    pfIds = reIds(pfIds, goodsInfo.getF15());
                    pfIds = reIds(pfIds, goodsInfo.getF18());
                    pfIds = reIds(pfIds, goodsInfo.getF16());
                    pfIds = reIds(pfIds, goodsInfo.getF21());
                    pfIds = reIds(pfIds, goodsInfo.getF13());
                    pfIds = reIds(pfIds, goodsInfo.getF17());
                    pfIds = reIds(pfIds, goodsInfo.getF7());
                    List<GameAttribute> gameAttributes = getGameAttributs(pfIds);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                String firldName = gameAttribute1.getFieldName().replace("go","");
                                if(firldName.contains("-")){
                                    firldName = firldName.split("-")[1]+firldName.split("-")[0];
                                }
                                for (Object p : jsonArray2) {
                                    String str = JSONObject.parseObject(p.toString()).getString("value");
                                    str = str.replace(" ","").replace("GO！","");
                                    if (str.equals(firldName)) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            } else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("传奇皮肤")) {
                    String pfIds = "";
                    pfIds = reIds(pfIds, goodsInfo.getF3());
                    pfIds = reIds(pfIds, goodsInfo.getF7());
                    pfIds = reIds(pfIds, goodsInfo.getF17());
                    pfIds = reIds(pfIds, goodsInfo.getF12());
                    pfIds = reIds(pfIds, goodsInfo.getF10());
                    pfIds = reIds(pfIds, goodsInfo.getF20());
                    pfIds = reIds(pfIds, goodsInfo.getF11());
                    pfIds = reIds(pfIds, goodsInfo.getF9());
                    pfIds = reIds(pfIds, goodsInfo.getF13());
                    pfIds = reIds(pfIds, goodsInfo.getF18());
                    List<GameAttribute> gameAttributes = getGameAttributs(pfIds);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                String firldName = gameAttribute1.getFieldName().replace("近战武器-","");
                                if(firldName.contains("-")){
                                    firldName = firldName.split("-")[1]+firldName.split("-")[0];
                                }
                                for (Object p : jsonArray2) {
                                    String str = JSONObject.parseObject(p.toString()).getString("value");
                                    str = str.replace(" ","").replace("GO！","");
                                    if (str.equals(firldName)) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            } else {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                            }
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "无"));
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("豪华皮肤")) {
                    String pfIds = "";
                    pfIds = reIds(pfIds, goodsInfo.getF2());
                    pfIds = reIds(pfIds, goodsInfo.getF3());
                    pfIds = reIds(pfIds, goodsInfo.getF4());
                    pfIds = reIds(pfIds, goodsInfo.getF5());
                    pfIds = reIds(pfIds, goodsInfo.getF6());
                    pfIds = reIds(pfIds, goodsInfo.getF7());
                    pfIds = reIds(pfIds, goodsInfo.getF8());
                    pfIds = reIds(pfIds, goodsInfo.getF9());
                    pfIds = reIds(pfIds, goodsInfo.getF10());
                    pfIds = reIds(pfIds, goodsInfo.getF11());
                    pfIds = reIds(pfIds, goodsInfo.getF12());
                    pfIds = reIds(pfIds, goodsInfo.getF13());
                    pfIds = reIds(pfIds, goodsInfo.getF14());
                    pfIds = reIds(pfIds, goodsInfo.getF15());
                    pfIds = reIds(pfIds, goodsInfo.getF16());
                    pfIds = reIds(pfIds, goodsInfo.getF17());
                    pfIds = reIds(pfIds, goodsInfo.getF18());
                    pfIds = reIds(pfIds, goodsInfo.getF19());
                    pfIds = reIds(pfIds, goodsInfo.getF20());
                    pfIds = reIds(pfIds, goodsInfo.getF21());
                    pfIds = reIds(pfIds, goodsInfo.getF22());
                    List<GameAttribute> gameAttributes = getGameAttributs(pfIds);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                String firldName = gameAttribute1.getFieldName().replace("近战武器-","");
                                if(firldName.contains("-")){
                                    firldName = firldName.split("-")[1]+firldName.split("-")[0];
                                }
                                for (Object p : jsonArray2) {
                                    String str = JSONObject.parseObject(p.toString()).getString("value");
                                    str = str.replace(" ","").replace("GO！","");
                                    if (str.equals(firldName)) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("精选皮肤")) {
                    String pfIds = "";
                    pfIds = reIds(pfIds, goodsInfo.getF2());
                    pfIds = reIds(pfIds, goodsInfo.getF3());
                    pfIds = reIds(pfIds, goodsInfo.getF4());
                    pfIds = reIds(pfIds, goodsInfo.getF5());
                    pfIds = reIds(pfIds, goodsInfo.getF6());
                    pfIds = reIds(pfIds, goodsInfo.getF7());
                    pfIds = reIds(pfIds, goodsInfo.getF8());
                    pfIds = reIds(pfIds, goodsInfo.getF9());
                    pfIds = reIds(pfIds, goodsInfo.getF10());
                    pfIds = reIds(pfIds, goodsInfo.getF11());
                    pfIds = reIds(pfIds, goodsInfo.getF12());
                    pfIds = reIds(pfIds, goodsInfo.getF13());
                    pfIds = reIds(pfIds, goodsInfo.getF14());
                    pfIds = reIds(pfIds, goodsInfo.getF15());
                    pfIds = reIds(pfIds, goodsInfo.getF16());
                    pfIds = reIds(pfIds, goodsInfo.getF17());
                    pfIds = reIds(pfIds, goodsInfo.getF18());
                    pfIds = reIds(pfIds, goodsInfo.getF19());
                    pfIds = reIds(pfIds, goodsInfo.getF20());
                    pfIds = reIds(pfIds, goodsInfo.getF21());
                    pfIds = reIds(pfIds, goodsInfo.getF22());
                    List<GameAttribute> gameAttributes = getGameAttributs(pfIds);
                    if (CollectionUtils.isNotEmpty(gameAttributes)) {
                        String options = JSONObject.parseObject(o.toString()).getString("options");
                        if (StringUtils.isNotEmpty(options)) {
                            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
                            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
                            String value = "";
                            for (GameAttribute gameAttribute1 : gameAttributes) {
                                String firldName = gameAttribute1.getFieldName().replace("近战武器-","");
                                if(firldName.contains("-")){
                                    firldName = firldName.split("-")[1]+firldName.split("-")[0];
                                }
                                for (Object p : jsonArray2) {
                                    String str = JSONObject.parseObject(p.toString()).getString("value");
                                    str = str.replace(" ","").replace("GO！","");
                                    if (str.equals(firldName)) {
                                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                                    }
                                }
                            }
                            if (StringUtils.isNotEmpty(value)) {
                                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), value.substring(1)));
                            }
                        }
                    }
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    if(StringUtils.isNotEmpty(goodsInfo.getF1())){
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF1()));
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), gameAttribute1.getFieldName().replace("支持人脸包赔","不可二次实名")));
                    }
                }

                goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
                goodsPublishDto.setSupportRetrieveCompensation(true);

                AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
                gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
                JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
                String platform_ids = jsonObject2.getString("platform_ids");
                String number = JSONObject.parseObject(platform_ids).getString("number");
                JSONArray jsonArray2 = JSONArray.parseArray(number);
                for (Object p : jsonArray2) {
                    gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
                }
                String client_info = jsonObject1.getString("client_info");

                gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
                gamePropertyDto.setServerId(serviceId);

                goodsPublishDto.setGameProperty(gamePropertyDto);
                goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
                goodsPublishDto.setFirstCategoryId(1L);
            }
        }
        //三角洲行动
        if ("三角洲行动".equals(goodsInfo.getGameName())){
            String secondCategoryId = "1727249125778356";
            Long serviceId = 1723621561895263l;
            JSONObject jsonObject = JSONObject.parseObject(LCConstant.jymSJZXDQQ);
            String alibaba_jym_item_property_def_query_response = jsonObject.getString("alibaba_jym_item_property_def_query_response");
            String result = JSONObject.parseObject(alibaba_jym_item_property_def_query_response).getString("result");
            JSONObject jsonObject1 = JSONObject.parseObject(result);
            String goods_property_dto = JSONObject.parseObject(jsonObject1.getString("seller_account_properties")).getString("goods_property_dto");
            JSONArray jsonArray = JSONArray.parseArray(goods_property_dto);
            for (Object o : jsonArray) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏帐号")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf(extractAccount), aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("游戏密码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt("123456", aesKey)));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("手机号码")) {
                    goodsPropertyValueDtoList.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), AESUtil.encrypt(String.valueOf("18525252525"), aesKey)));
                }
            }
            goodsPublishDto.setSellerAccountPropertyList(goodsPropertyValueDtoList);
            goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);
            List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr = new ArrayList<>();
            String ext_properties = jsonObject1.getString("ext_properties");
            String goods_property_dto1 = JSONObject.parseObject(ext_properties).getString("goods_property_dto");
            JSONArray jsonArray1 = JSONArray.parseArray(goods_property_dto1);
            for (Object o : jsonArray1) {
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("角色等级")) {
                    propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "30"));
                }
                if (JSONObject.parseObject(o.toString()).getString("property_name").equals("是否可二次实名")) {
                    if (StringUtils.isNotEmpty(goodsInfo.getF7())) {
                        GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfo.getF7()));
                        if (gameAttribute1.getFieldName().equals("可二次实名")) {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "可二次实名"));
                        } else {
                            propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                        }
                    } else {
                        propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(JSONObject.parseObject(o.toString()).getString("property_id")), "不可二次实名"));
                    }
                }
            }
            goodsPublishDto.setGoodsPropertyList(propertyValueDtoListArr);
            goodsPublishDto.setSupportRetrieveCompensation(true);

            AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto gamePropertyDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GamePropertyDto();
            gamePropertyDto.setGameId(Long.valueOf(jsonObject1.getString("game_id")));
            JSONObject jsonObject2 = JSONObject.parseObject(jsonObject1.getString("client_info"));
            String platform_ids = jsonObject2.getString("platform_ids");
            String number = JSONObject.parseObject(platform_ids).getString("number");
            JSONArray jsonArray2 = JSONArray.parseArray(number);
            for (Object p : jsonArray2) {
                gamePropertyDto.setPlatformId(Long.valueOf(p.toString()));
            }
            String client_info = jsonObject1.getString("client_info");

            gamePropertyDto.setClientId(Long.valueOf(JSONObject.parseObject(client_info).getString("id")));
            gamePropertyDto.setServerId(serviceId);

            goodsPublishDto.setGameProperty(gamePropertyDto);
            goodsPublishDto.setSecondCategoryId(Long.valueOf(secondCategoryId));
            goodsPublishDto.setFirstCategoryId(1L);
        }
        List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto> goodsPublishImageDtosList = new ArrayList<>();
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
        //图片
        GoodsInfoImg goodsInfoImg = new GoodsInfoImg();
        goodsInfoImg.setGoodsId(goodsInfo.getId());
        goodsInfoImg.setType(Constants.STR_1);
        List<GoodsInfoImg> infoImg = goodsInfoImgMapper.selectGoodsInfoImgList(goodsInfoImg);

        List<String> infoImgs = infoImg.stream().map(goodsInfoImg1 -> goodsInfoImg1.getImgUrl()).collect(Collectors.toList());
        if (infoImgs.size() > 19) {
            infoImgs = infoImgs.subList(0, 19);
        }
        if (CollectionUtils.isEmpty(infoImgs) && StringUtils.isEmpty(goodsInfo.getTitleImg())) {
            goodsPublishImageDto.setImageUrl("https://game.ikbh.top/logo/no_img.jpg");
            goodsPublishImageDtosList.add(goodsPublishImageDto);
        } else {
            for (String img : infoImgs) {
                boolean b = true;
                try {
                    b = sensitiveScan(img);
                } catch (Exception e) {
                    throw new GlobalException("图片解析失败");
                }
                if (b) {
                    String imgUrl = img;
                    imgUrl = toCoverImg(imgUrl);
                    goodsPublishImageDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPublishImageDto();
                    goodsPublishImageDto.setImageUrl(imgUrl);
                    goodsPublishImageDtosList.add(goodsPublishImageDto);
                }
            }
        }
        goodsPublishDto.setImageUrlList(goodsPublishImageDtosList);
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto goodsBaseInfoDto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsBaseInfoDto();
        // 标题
        if (title.length() > 15) {
            title = title.toString().substring(0, 15);
        }
        goodsBaseInfoDto.setTitle(title);
        if (goodsInfo.getPrice().compareTo(new BigDecimal(100)) > 0) {
            goodsBaseInfoDto.setPrice(goodsInfo.getPrice().toPlainString());
        } else {
            goodsBaseInfoDto.setPrice("119");
        }

        goodsBaseInfoDto.setStorage(1l);
        goodsBaseInfoDto.setDescription(des.replace("+", ""));
        goodsPublishDto.setGoodsBaseInfo(goodsBaseInfoDto);
        goodsPublishDto.setExternalGoodsId(correspondjym);
        goodsPublishDto.setCanBargain(true);

        goodsPublishDtoList.add(goodsPublishDto);
        goodsPublishCommandDto.setGoodsList(goodsPublishDtoList);

        // 请求相应
        AlibabaJymItemExternalGoodsBatchPublishResponse rsp = null;
        AlibabaJymItemExternalGoodsBatchPublishRequest req = new AlibabaJymItemExternalGoodsBatchPublishRequest();
        req.setGoodsPublishCommand(goodsPublishCommandDto);
        try {
            rsp = client.execute(req);
        } catch (ApiException e) {
            e.printStackTrace();
        }
        log.info("交易猫请求参数:{}", JSONObject.toJSONString(goodsPublishCommandDto));
        log.info("交易猫返回参数:{}", rsp.getBody());
        if (Objects.nonNull(rsp.getSucceed()) && rsp.getSucceed() != false) {
            AlibabaJymItemExternalGoodsBatchPublishResponse.GoodsBatchResultDto result = rsp.getResult();
            Long batchId = result.getBatchId();
            if (Objects.nonNull(batchId)) {
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", goodsPublishCommandDto);
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 200);
                res.put("outId", batchId);
                setJymTask(goodsInfo, batchId, LCConstant.interAdd, sa.getSaleName(), sa.getId());
                return res;
            } else {
                log.error("交易猫发布商品失败:{}", rsp.getBody());
                HashMap<String, Object> res = new HashMap<>();
                res.put("req", goodsPublishCommandDto);
                res.put("res", rsp.getBody());
                res.put("msg", rsp.getBody());
                res.put("code", 500);
                return res;
            }
        } else {
            log.error("交易猫发布商品失败:{}", rsp.getBody());
            HashMap<String, Object> res = new HashMap<>();
            res.put("req", goodsPublishCommandDto);
            res.put("res", rsp.getBody());
            res.put("msg", rsp.getBody());
            res.put("code", 500);
            return res;
        }
    }

    public void setJymTask(GoodsInfo info, Long taskId, String type, String salecode, Long configId) {
        Jymtask jymtask = new Jymtask();
        jymtask.setAccountid(info.getId());
        jymtask.setCreateId(info.getCreateId());
        jymtask.setCreateTime(new Date());
        jymtask.setSalecode(salecode);
        jymtask.setConfig(configId);
        if (Objects.equals(LCConstant.interAdd, type)) {
            jymtask.setAddStatus("0");
            jymtask.setJymAddTaskId(taskId);
        }
        if (Objects.equals(LCConstant.interEdit, type)) {
            jymtask.setEditStatus("0");
            jymtask.setJymEditTaskId(taskId);
        }
        if (Objects.equals(LCConstant.interDel, type)) {
            jymtask.setDelStatus("0");
            jymtask.setJymDelTaskId(taskId);
        }
        jymtaskMapper.insertJymtask(jymtask);
    }

    //构建商品属性
    public AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto addPropertyParam(Long propertyId, String value) {
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto dto = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        dto.setPropertyId(propertyId);
        dto.setValue(value);
        return dto;
    }

    //构建原神商品属性
    public AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO addMultiPropertyParam(String propertyName, List propertyValueList) {
        AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO dto = new AlibabaJymItemExternalGoodsBatchPublishRequest.MultiPropertyValueDTO();
        dto.setPropertyName(propertyName);
        dto.setPropertyValueList(propertyValueList);
        return dto;
    }

    private String getPropertyParam(String content, String param) {
        if (StringUtils.isNotEmpty(param)) {
            List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(param.split(","), Long.class));
            if (CollectionUtils.isNotEmpty(gameAttributes)) {
                List<String> split = Arrays.asList(content.split(","));
                List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
                if (CollectionUtils.isNotEmpty(collect)) {
                    if (gameAttributes.get(0).getGameName().equals("原神")) {
                        collect = collect.stream().map(s -> {
                            if (s.contains("命")) {
                                s = s.split("命")[1];
                            }
                            if (s.contains("精")) {
                                s = s.substring(2);
                            }
                            return s;
                        }).collect(Collectors.toList());
                    }
                    StringBuilder builder = new StringBuilder();
                    for (String s : collect) {
                        if (split.contains(s)) {
                            builder.append(s + ",");
                        }
                    }
                    if (builder.length() > 0) {
                        String substring = builder.substring(0, builder.length() - 1);
                        return substring;
                    }
                }
            }
        }
        return "无";
    }

    private String getPropertyParams(String content, String param) {
        List<GameAttribute> gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(param.split(","), Long.class));
        if (CollectionUtils.isNotEmpty(gameAttributes)) {
            List<String> split = Arrays.asList(content.split(","));
            List<String> collect = gameAttributes.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
            if (CollectionUtils.isNotEmpty(collect)) {
                StringBuilder builder = new StringBuilder();
                for (String s : collect) {
                    if (s.contains("至尊套")) {
                        s = s.substring(3, 6);
                    }
                    if (s.contains("套")) {
                        s = s.substring(0, s.length() - 1);
                    }
                    if (split.equals(s)) {
                        builder.append(s + ",");
                    }
                }
                String substring = "";
                if (StringUtil.isNotEmpty(builder.toString())) {
                    substring = builder.substring(0, builder.length() - 1);
                }
                return substring;
            }
        }
        return "无";
    }

    private List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> goodspropertyParams(GoodsInfoAndAttrValueDto goodsInfo, List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> list11, String regional) {
        AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        GoodsInfoAndAttrValueDto goodsInfoAndAttrValueDt = goodsInfo;
        //召唤师等级
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782534118L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1642579812111110L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017625086L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581061804098L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF1())) {

//            gameAttributeMapper.selectGameAttributeListByIds

            obj12.setValue(goodsInfoAndAttrValueDt.getF1());
        } else {
            obj12.setValue("0");
        }
        list11.add(obj12);

        //贵族等级
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782539128L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1642579812119122L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017634100L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581061811104L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF2())) {
            String value = reRedioValue(goodsInfoAndAttrValueDt.getF2());
            obj12.setValue(value.replace("V", ""));
        } else {
            obj12.setValue("6");
        }
        list11.add(obj12);

        //段位等级
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782572182L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1642579812154190L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017638107L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581061846148L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF3())) {
            String value = reRedioValue(goodsInfoAndAttrValueDt.getF3());
            obj12.setValue(value);
        } else {
            obj12.setValue("无");
        }
        list11.add(obj12);


        //荣耀水晶数量
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782601215L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1642579812240043L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017692203L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581061872184L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF6())) {
            obj12.setValue(goodsInfoAndAttrValueDt.getF6());
        } else {
            obj12.setValue("0");
        }
        list11.add(obj12);

        //英雄数量
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782657320L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1642579812245052L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017750275L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062045431L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF7())) {
            obj12.setValue(goodsInfoAndAttrValueDt.getF7().replace("*", "0"));
        } else {
            obj12.setValue("0");
        }
        list11.add(obj12);

        //成人号
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579783119034L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479736516031L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018332644L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062406443L);
                break;
        }
        obj12.setValue("无");
        list11.add(obj12);

        //商家在线
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579783158077L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479768746098L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018375688L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062435475L);
                break;
        }
        obj12.setValue("全天在线");
//        list11.add(obj12);


        //帐号绑定
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579783138057L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479799783500L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018350660L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062421456L);
                break;
        }
        obj12.setValue("6");
        list11.add(obj12);


        //五级铭文个数
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579783117031L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479895836260L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018324633L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062396429L);
                break;
        }
        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF13())) {
            obj12.setValue(goodsInfoAndAttrValueDt.getF13());
        } else {
            obj12.setValue("250");
        }
        list11.add(obj12);

        //传说皮肤
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        List<String> wzrychuanshuoList = new ArrayList<>();

        boolean b = true;
        String f12 = goodsInfoAndAttrValueDt.getF12();
        List<GameAttribute> gameAttributes = new ArrayList<>();
        if (StringUtils.isNotEmpty(f12)) {
            String[] split = f12.split(",");
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
        }
        //普通传说
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1701152815735642L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1701153014347165L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1701153190846854L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1701153313223375L);
                break;
        }
        if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDt.getF12())) {
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(goodsInfoAndAttrValueDt.getF12().split(","), Long.class));
            String string = "[{\"id\":1701310228107320,\"name\":\"孙膑-小动物乐团\",\"value\":\"孙膑-小动物乐团\"},{\"id\":1701310228110321,\"name\":\"梦奇-胖达荣荣\",\"value\":\"梦奇-胖达荣荣\"},{\"id\":1701310228113322,\"name\":\"西施-游龙清影\",\"value\":\"西施-游龙清影\"},{\"id\":1701310228118323,\"name\":\"达摩-黄金狮子座\",\"value\":\"达摩-黄金狮子座\"},{\"id\":1701310228121324,\"name\":\"后羿-黄金射手座\",\"value\":\"后羿-黄金射手座\"},{\"id\":1701310228123325,\"name\":\"百里守约-碎云\",\"value\":\"百里守约-碎云\"},{\"id\":1701310228128326,\"name\":\"张良-黄金白羊座\",\"value\":\"张良-黄金白羊座\"},{\"id\":1701310228129329,\"name\":\"蔡文姬-花朝如约\",\"value\":\"蔡文姬-花朝如约\"},{\"id\":1701310228131331,\"name\":\"李白-诗剑行\",\"value\":\"李白-诗剑行\"},{\"id\":1701310228135332,\"name\":\"李信-一念神魔\",\"value\":\"李信-一念神魔\"},{\"id\":1701310228141335,\"name\":\"狄仁杰-超时空战士\",\"value\":\"狄仁杰-超时空战士\"},{\"id\":1701310228145336,\"name\":\"虞姬-云霓雀翎\",\"value\":\"虞姬-云霓雀翎\"},{\"id\":1701310228147338,\"name\":\"赵云-淬星耀世\",\"value\":\"赵云-淬星耀世\"},{\"id\":1701310228149339,\"name\":\"貂蝉-仲夏夜之梦\",\"value\":\"貂蝉-仲夏夜之梦\"},{\"id\":1701310228152341,\"name\":\"公孙离-记忆之芯\",\"value\":\"公孙离-记忆之芯\"},{\"id\":1701310228155342,\"name\":\"宫本武藏-地狱之眼\",\"value\":\"宫本武藏-地狱之眼\"},{\"id\":1701310228156344,\"name\":\"孙尚香-音你闪耀\",\"value\":\"孙尚香-音你闪耀\"},{\"id\":1701310228159345,\"name\":\"小乔-音你心动\",\"value\":\"小乔-音你心动\"},{\"id\":1701310228165346,\"name\":\"周瑜-音你心动\",\"value\":\"周瑜-音你心动\"},{\"id\":1701310228168347,\"name\":\"铠-绛天战甲\",\"value\":\"铠-绛天战甲\"},{\"id\":1701310228173348,\"name\":\"澜-电玩·雷克斯\",\"value\":\"澜-电玩·雷克斯\"},{\"id\":1701310228176349,\"name\":\"李元芳-飞鸢探春\",\"value\":\"李元芳-飞鸢探春\"},{\"id\":1701310228180350,\"name\":\"刘备-时之恋人\",\"value\":\"刘备-时之恋人\"},{\"id\":1701310228182351,\"name\":\"貂蝉-猫影幻舞\",\"value\":\"貂蝉-猫影幻舞\"},{\"id\":1701310228185353,\"name\":\"东皇太一-灼幽烈阳\",\"value\":\"东皇太一-灼幽烈阳\"},{\"id\":1701310228188354,\"name\":\"干将莫邪-久胜战神\",\"value\":\"干将莫邪-久胜战神\"},{\"id\":1701310228192356,\"name\":\"花木兰-冠军飞将\",\"value\":\"花木兰-冠军飞将\"},{\"id\":1701310228195357,\"name\":\"镜-炽阳神光\",\"value\":\"镜-炽阳神光\"},{\"id\":1701310228198358,\"name\":\"吕布-怒海麟威\",\"value\":\"吕布-怒海麟威\"},{\"id\":1701310228202359,\"name\":\"孙策-末日机甲\",\"value\":\"孙策-末日机甲\"},{\"id\":1701310228206360,\"name\":\"孙尚香-末日机甲\",\"value\":\"孙尚香-末日机甲\"},{\"id\":1701310228210362,\"name\":\"马超-无双飞将\",\"value\":\"马超-无双飞将\"},{\"id\":1701310228213363,\"name\":\"孙悟空-地狱火\",\"value\":\"孙悟空-地狱火\"},{\"id\":1701310228214364,\"name\":\"曜-云鹰飞将\",\"value\":\"曜-云鹰飞将\"},{\"id\":1701310228218365,\"name\":\"王昭君-乞巧织情\",\"value\":\"王昭君-乞巧织情\"},{\"id\":1701310228223366,\"name\":\"武则天-海洋之心\",\"value\":\"武则天-海洋之心\"},{\"id\":1701310228224368,\"name\":\"宫本武藏-惊梅引\",\"value\":\"宫本武藏-惊梅引\"},{\"id\":1701310228227369,\"name\":\"无\",\"value\":\"无\"}]\n";
            JSONArray jsonArray = JSONArray.parseArray(string);
            String name = "";
            for (GameAttribute gameAttribute1 : gameAttributes) {
                for (Object o : jsonArray) {
                    if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(o.toString()).getString("name"))) {
                        name += "," + JSONObject.parseObject(o.toString()).getString("value");
                    }
                }
            }
            if (StringUtils.isNotEmpty(name)) {
                obj12.setValue(name.substring(1));
            } else {
                obj12.setValue("无");
            }
        } else {
            obj12.setValue("无");
        }
        list11.add(obj12);
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579783039822L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String string = "[{\"id\":1701152791356237,\"name\":\"狄仁杰-夜礼服假面\",\"value\":\"狄仁杰-夜礼服假面\"},{\"id\":1701152791358238,\"name\":\"王昭君-永恒水手月亮\",\"value\":\"王昭君-永恒水手月亮\"},{\"id\":1701152791362239,\"name\":\"安琪拉-追逃游戏\",\"value\":\"安琪拉-追逃游戏\"},{\"id\":1701152791363240,\"name\":\"百里玄策-白虎志\",\"value\":\"百里玄策-白虎志\"},{\"id\":1701152791366241,\"name\":\"不知火舞-绯月行\",\"value\":\"不知火舞-绯月行\"},{\"id\":1701152791368244,\"name\":\"大乔-挚爱花嫁\",\"value\":\"大乔-挚爱花嫁\"},{\"id\":1701152791372245,\"name\":\"关羽-武圣\",\"value\":\"关羽-武圣\"},{\"id\":1701152791372246,\"name\":\"貂蝉-遇见胡旋\",\"value\":\"貂蝉-遇见胡旋\"},{\"id\":1701152791374247,\"name\":\"干将莫邪-画中仙\",\"value\":\"干将莫邪-画中仙\"},{\"id\":1701152791379248,\"name\":\"公孙离-祈雪灵祝\",\"value\":\"公孙离-祈雪灵祝\"},{\"id\":1701152791381249,\"name\":\"后羿-无尽星芒\",\"value\":\"后羿-无尽星芒\"},{\"id\":1701152791384250,\"name\":\"张飞-百相守梦\",\"value\":\"张飞-百相守梦\"},{\"id\":1701152791389252,\"name\":\"伽罗-炽翼辉光\",\"value\":\"伽罗-炽翼辉光\"},{\"id\":1701152791392253,\"name\":\"伽罗-太华\",\"value\":\"伽罗-太华\"},{\"id\":1701152791394254,\"name\":\"橘右京-枫霜尽\",\"value\":\"橘右京-枫霜尽\"},{\"id\":1701152791396255,\"name\":\"狄仁杰-神器·狴犴令\",\"value\":\"狄仁杰-神器·狴犴令\"},{\"id\":1701152791399256,\"name\":\"兰陵王-默契交锋\",\"value\":\"兰陵王-默契交锋\"},{\"id\":1701152791400257,\"name\":\"李白-凤求凰\",\"value\":\"李白-凤求凰\"},{\"id\":1701152791402258,\"name\":\"李信-山海·炽霜斩\",\"value\":\"李信-山海·炽霜斩\"},{\"id\":1701152791406259,\"name\":\"花木兰-燃星之曲\",\"value\":\"花木兰-燃星之曲\"},{\"id\":1701152791411262,\"name\":\"王昭君-星穹之声\",\"value\":\"王昭君-星穹之声\"},{\"id\":1701152791412263,\"name\":\"鲁班七号-寅虎·瑞焰\",\"value\":\"鲁班七号-寅虎·瑞焰\"},{\"id\":1701152791415264,\"name\":\"露娜-启示之音\",\"value\":\"露娜-启示之音\"},{\"id\":1701152791420266,\"name\":\"吕布-天魔缭乱\",\"value\":\"吕布-天魔缭乱\"},{\"id\":1701152791422267,\"name\":\"马可波罗-深海之息\",\"value\":\"马可波罗-深海之息\"},{\"id\":1701152791425268,\"name\":\"马可波罗-妄想实况\",\"value\":\"马可波罗-妄想实况\"},{\"id\":1701152791427269,\"name\":\"娜可露露-前尘镜\",\"value\":\"娜可露露-前尘镜\"},{\"id\":1701152791432270,\"name\":\"女娲-补天\",\"value\":\"女娲-补天\"},{\"id\":1701152791437272,\"name\":\"裴擒虎-寅虎·赤拳\",\"value\":\"裴擒虎-寅虎·赤拳\"},{\"id\":1701152791440273,\"name\":\"上官婉儿-妄想奇谈\",\"value\":\"上官婉儿-妄想奇谈\"},{\"id\":1701152791442274,\"name\":\"孙策-挚爱之约\",\"value\":\"孙策-挚爱之约\"},{\"id\":1701152791444275,\"name\":\"孙尚香-异界灵契\",\"value\":\"孙尚香-异界灵契\"},{\"id\":1701152791447276,\"name\":\"孙悟空-齐天大圣\",\"value\":\"孙悟空-齐天大圣\"},{\"id\":1701152791449277,\"name\":\"孙悟空-零号·赤焰\",\"value\":\"孙悟空-零号·赤焰\"},{\"id\":1701152791452278,\"name\":\"夏洛特-浮生妄\",\"value\":\"夏洛特-浮生妄\"},{\"id\":1701152791453280,\"name\":\"项羽-无限倾心\",\"value\":\"项羽-无限倾心\"},{\"id\":1701152791456281,\"name\":\"小乔-山海·琳琅生\",\"value\":\"小乔-山海·琳琅生\"},{\"id\":1701152791459282,\"name\":\"亚瑟-追逃游戏\",\"value\":\"亚瑟-追逃游戏\"},{\"id\":1701152791464284,\"name\":\"杨戬-永曜之星\",\"value\":\"杨戬-永曜之星\"},{\"id\":1701152791468286,\"name\":\"瑶-时之祈愿\",\"value\":\"瑶-时之祈愿\"},{\"id\":1701152791470287,\"name\":\"曜-山海·苍雷引\",\"value\":\"曜-山海·苍雷引\"},{\"id\":1701152791472289,\"name\":\"曜-李逍遥\",\"value\":\"曜-李逍遥\"},{\"id\":1701152791475291,\"name\":\"虞姬-启明星使\",\"value\":\"虞姬-启明星使\"},{\"id\":1701152791480295,\"name\":\"虞姬-无限倾心\",\"value\":\"虞姬-无限倾心\"},{\"id\":1701152791483296,\"name\":\"云缨-鹤归松栖\",\"value\":\"云缨-鹤归松栖\"},{\"id\":1701152791486297,\"name\":\"诸葛亮-时雨天司\",\"value\":\"诸葛亮-时雨天司\"},{\"id\":1701152791486298,\"name\":\"诸葛亮-武陵仙君\",\"value\":\"诸葛亮-武陵仙君\"},{\"id\":1701152791491299,\"name\":\"诸葛亮-鹤羽星尊\",\"value\":\"诸葛亮-鹤羽星尊\"},{\"id\":1701152791493300,\"name\":\"大乔-时之奇旅\",\"value\":\"大乔-时之奇旅\"},{\"id\":1701152791495301,\"name\":\"甄姬-至美·化雀舞\",\"value\":\"甄姬-至美·化雀舞\"},{\"id\":1701152791501304,\"name\":\"鲁班七号-时之奇旅\",\"value\":\"鲁班七号-时之奇旅\"},{\"id\":1701152791503305,\"name\":\"兰陵王-影龙天霄\",\"value\":\"兰陵王-影龙天霄\"},{\"id\":1701152791505306,\"name\":\"吕布-遇见神鼓\",\"value\":\"吕布-遇见神鼓\"},{\"id\":1701152791509307,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(string);
                    String name = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(o.toString()).getString("name"))) {
                                name += "," + JSONObject.parseObject(o.toString()).getString("name");
                            }
                        }
                    }
                    if (StringUtils.isNotEmpty(name)) {
                        obj12.setValue(name.substring(1));
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479927099065L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String string = "[{\"id\":1701152791356237,\"name\":\"狄仁杰-夜礼服假面\",\"value\":\"狄仁杰-夜礼服假面\"},{\"id\":1701152791358238,\"name\":\"王昭君-永恒水手月亮\",\"value\":\"王昭君-永恒水手月亮\"},{\"id\":1701152791362239,\"name\":\"安琪拉-追逃游戏\",\"value\":\"安琪拉-追逃游戏\"},{\"id\":1701152791363240,\"name\":\"百里玄策-白虎志\",\"value\":\"百里玄策-白虎志\"},{\"id\":1701152791366241,\"name\":\"不知火舞-绯月行\",\"value\":\"不知火舞-绯月行\"},{\"id\":1701152791368244,\"name\":\"大乔-挚爱花嫁\",\"value\":\"大乔-挚爱花嫁\"},{\"id\":1701152791372245,\"name\":\"关羽-武圣\",\"value\":\"关羽-武圣\"},{\"id\":1701152791372246,\"name\":\"貂蝉-遇见胡旋\",\"value\":\"貂蝉-遇见胡旋\"},{\"id\":1701152791374247,\"name\":\"干将莫邪-画中仙\",\"value\":\"干将莫邪-画中仙\"},{\"id\":1701152791379248,\"name\":\"公孙离-祈雪灵祝\",\"value\":\"公孙离-祈雪灵祝\"},{\"id\":1701152791381249,\"name\":\"后羿-无尽星芒\",\"value\":\"后羿-无尽星芒\"},{\"id\":1701152791384250,\"name\":\"张飞-百相守梦\",\"value\":\"张飞-百相守梦\"},{\"id\":1701152791389252,\"name\":\"伽罗-炽翼辉光\",\"value\":\"伽罗-炽翼辉光\"},{\"id\":1701152791392253,\"name\":\"伽罗-太华\",\"value\":\"伽罗-太华\"},{\"id\":1701152791394254,\"name\":\"橘右京-枫霜尽\",\"value\":\"橘右京-枫霜尽\"},{\"id\":1701152791396255,\"name\":\"狄仁杰-神器·狴犴令\",\"value\":\"狄仁杰-神器·狴犴令\"},{\"id\":1701152791399256,\"name\":\"兰陵王-默契交锋\",\"value\":\"兰陵王-默契交锋\"},{\"id\":1701152791400257,\"name\":\"李白-凤求凰\",\"value\":\"李白-凤求凰\"},{\"id\":1701152791402258,\"name\":\"李信-山海·炽霜斩\",\"value\":\"李信-山海·炽霜斩\"},{\"id\":1701152791406259,\"name\":\"花木兰-燃星之曲\",\"value\":\"花木兰-燃星之曲\"},{\"id\":1701152791411262,\"name\":\"王昭君-星穹之声\",\"value\":\"王昭君-星穹之声\"},{\"id\":1701152791412263,\"name\":\"鲁班七号-寅虎·瑞焰\",\"value\":\"鲁班七号-寅虎·瑞焰\"},{\"id\":1701152791415264,\"name\":\"露娜-启示之音\",\"value\":\"露娜-启示之音\"},{\"id\":1701152791420266,\"name\":\"吕布-天魔缭乱\",\"value\":\"吕布-天魔缭乱\"},{\"id\":1701152791422267,\"name\":\"马可波罗-深海之息\",\"value\":\"马可波罗-深海之息\"},{\"id\":1701152791425268,\"name\":\"马可波罗-妄想实况\",\"value\":\"马可波罗-妄想实况\"},{\"id\":1701152791427269,\"name\":\"娜可露露-前尘镜\",\"value\":\"娜可露露-前尘镜\"},{\"id\":1701152791432270,\"name\":\"女娲-补天\",\"value\":\"女娲-补天\"},{\"id\":1701152791437272,\"name\":\"裴擒虎-寅虎·赤拳\",\"value\":\"裴擒虎-寅虎·赤拳\"},{\"id\":1701152791440273,\"name\":\"上官婉儿-妄想奇谈\",\"value\":\"上官婉儿-妄想奇谈\"},{\"id\":1701152791442274,\"name\":\"孙策-挚爱之约\",\"value\":\"孙策-挚爱之约\"},{\"id\":1701152791444275,\"name\":\"孙尚香-异界灵契\",\"value\":\"孙尚香-异界灵契\"},{\"id\":1701152791447276,\"name\":\"孙悟空-齐天大圣\",\"value\":\"孙悟空-齐天大圣\"},{\"id\":1701152791449277,\"name\":\"孙悟空-零号·赤焰\",\"value\":\"孙悟空-零号·赤焰\"},{\"id\":1701152791452278,\"name\":\"夏洛特-浮生妄\",\"value\":\"夏洛特-浮生妄\"},{\"id\":1701152791453280,\"name\":\"项羽-无限倾心\",\"value\":\"项羽-无限倾心\"},{\"id\":1701152791456281,\"name\":\"小乔-山海·琳琅生\",\"value\":\"小乔-山海·琳琅生\"},{\"id\":1701152791459282,\"name\":\"亚瑟-追逃游戏\",\"value\":\"亚瑟-追逃游戏\"},{\"id\":1701152791464284,\"name\":\"杨戬-永曜之星\",\"value\":\"杨戬-永曜之星\"},{\"id\":1701152791468286,\"name\":\"瑶-时之祈愿\",\"value\":\"瑶-时之祈愿\"},{\"id\":1701152791470287,\"name\":\"曜-山海·苍雷引\",\"value\":\"曜-山海·苍雷引\"},{\"id\":1701152791472289,\"name\":\"曜-李逍遥\",\"value\":\"曜-李逍遥\"},{\"id\":1701152791475291,\"name\":\"虞姬-启明星使\",\"value\":\"虞姬-启明星使\"},{\"id\":1701152791480295,\"name\":\"虞姬-无限倾心\",\"value\":\"虞姬-无限倾心\"},{\"id\":1701152791483296,\"name\":\"云缨-鹤归松栖\",\"value\":\"云缨-鹤归松栖\"},{\"id\":1701152791486297,\"name\":\"诸葛亮-时雨天司\",\"value\":\"诸葛亮-时雨天司\"},{\"id\":1701152791486298,\"name\":\"诸葛亮-武陵仙君\",\"value\":\"诸葛亮-武陵仙君\"},{\"id\":1701152791491299,\"name\":\"诸葛亮-鹤羽星尊\",\"value\":\"诸葛亮-鹤羽星尊\"},{\"id\":1701152791493300,\"name\":\"大乔-时之奇旅\",\"value\":\"大乔-时之奇旅\"},{\"id\":1701152791495301,\"name\":\"甄姬-至美·化雀舞\",\"value\":\"甄姬-至美·化雀舞\"},{\"id\":1701152791501304,\"name\":\"鲁班七号-时之奇旅\",\"value\":\"鲁班七号-时之奇旅\"},{\"id\":1701152791503305,\"name\":\"兰陵王-影龙天霄\",\"value\":\"兰陵王-影龙天霄\"},{\"id\":1701152791505306,\"name\":\"吕布-遇见神鼓\",\"value\":\"吕布-遇见神鼓\"},{\"id\":1701152791509307,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(string);
                    String name = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(o.toString()).getString("name"))) {
                                name += "," + JSONObject.parseObject(o.toString()).getString("name");
                            }
                        }
                    }
                    if (StringUtils.isNotEmpty(name)) {
                        obj12.setValue(name.substring(1));
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018247527L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String string = "[{\"id\":1701152791356237,\"name\":\"狄仁杰-夜礼服假面\",\"value\":\"狄仁杰-夜礼服假面\"},{\"id\":1701152791358238,\"name\":\"王昭君-永恒水手月亮\",\"value\":\"王昭君-永恒水手月亮\"},{\"id\":1701152791362239,\"name\":\"安琪拉-追逃游戏\",\"value\":\"安琪拉-追逃游戏\"},{\"id\":1701152791363240,\"name\":\"百里玄策-白虎志\",\"value\":\"百里玄策-白虎志\"},{\"id\":1701152791366241,\"name\":\"不知火舞-绯月行\",\"value\":\"不知火舞-绯月行\"},{\"id\":1701152791368244,\"name\":\"大乔-挚爱花嫁\",\"value\":\"大乔-挚爱花嫁\"},{\"id\":1701152791372245,\"name\":\"关羽-武圣\",\"value\":\"关羽-武圣\"},{\"id\":1701152791372246,\"name\":\"貂蝉-遇见胡旋\",\"value\":\"貂蝉-遇见胡旋\"},{\"id\":1701152791374247,\"name\":\"干将莫邪-画中仙\",\"value\":\"干将莫邪-画中仙\"},{\"id\":1701152791379248,\"name\":\"公孙离-祈雪灵祝\",\"value\":\"公孙离-祈雪灵祝\"},{\"id\":1701152791381249,\"name\":\"后羿-无尽星芒\",\"value\":\"后羿-无尽星芒\"},{\"id\":1701152791384250,\"name\":\"张飞-百相守梦\",\"value\":\"张飞-百相守梦\"},{\"id\":1701152791389252,\"name\":\"伽罗-炽翼辉光\",\"value\":\"伽罗-炽翼辉光\"},{\"id\":1701152791392253,\"name\":\"伽罗-太华\",\"value\":\"伽罗-太华\"},{\"id\":1701152791394254,\"name\":\"橘右京-枫霜尽\",\"value\":\"橘右京-枫霜尽\"},{\"id\":1701152791396255,\"name\":\"狄仁杰-神器·狴犴令\",\"value\":\"狄仁杰-神器·狴犴令\"},{\"id\":1701152791399256,\"name\":\"兰陵王-默契交锋\",\"value\":\"兰陵王-默契交锋\"},{\"id\":1701152791400257,\"name\":\"李白-凤求凰\",\"value\":\"李白-凤求凰\"},{\"id\":1701152791402258,\"name\":\"李信-山海·炽霜斩\",\"value\":\"李信-山海·炽霜斩\"},{\"id\":1701152791406259,\"name\":\"花木兰-燃星之曲\",\"value\":\"花木兰-燃星之曲\"},{\"id\":1701152791411262,\"name\":\"王昭君-星穹之声\",\"value\":\"王昭君-星穹之声\"},{\"id\":1701152791412263,\"name\":\"鲁班七号-寅虎·瑞焰\",\"value\":\"鲁班七号-寅虎·瑞焰\"},{\"id\":1701152791415264,\"name\":\"露娜-启示之音\",\"value\":\"露娜-启示之音\"},{\"id\":1701152791420266,\"name\":\"吕布-天魔缭乱\",\"value\":\"吕布-天魔缭乱\"},{\"id\":1701152791422267,\"name\":\"马可波罗-深海之息\",\"value\":\"马可波罗-深海之息\"},{\"id\":1701152791425268,\"name\":\"马可波罗-妄想实况\",\"value\":\"马可波罗-妄想实况\"},{\"id\":1701152791427269,\"name\":\"娜可露露-前尘镜\",\"value\":\"娜可露露-前尘镜\"},{\"id\":1701152791432270,\"name\":\"女娲-补天\",\"value\":\"女娲-补天\"},{\"id\":1701152791437272,\"name\":\"裴擒虎-寅虎·赤拳\",\"value\":\"裴擒虎-寅虎·赤拳\"},{\"id\":1701152791440273,\"name\":\"上官婉儿-妄想奇谈\",\"value\":\"上官婉儿-妄想奇谈\"},{\"id\":1701152791442274,\"name\":\"孙策-挚爱之约\",\"value\":\"孙策-挚爱之约\"},{\"id\":1701152791444275,\"name\":\"孙尚香-异界灵契\",\"value\":\"孙尚香-异界灵契\"},{\"id\":1701152791447276,\"name\":\"孙悟空-齐天大圣\",\"value\":\"孙悟空-齐天大圣\"},{\"id\":1701152791449277,\"name\":\"孙悟空-零号·赤焰\",\"value\":\"孙悟空-零号·赤焰\"},{\"id\":1701152791452278,\"name\":\"夏洛特-浮生妄\",\"value\":\"夏洛特-浮生妄\"},{\"id\":1701152791453280,\"name\":\"项羽-无限倾心\",\"value\":\"项羽-无限倾心\"},{\"id\":1701152791456281,\"name\":\"小乔-山海·琳琅生\",\"value\":\"小乔-山海·琳琅生\"},{\"id\":1701152791459282,\"name\":\"亚瑟-追逃游戏\",\"value\":\"亚瑟-追逃游戏\"},{\"id\":1701152791464284,\"name\":\"杨戬-永曜之星\",\"value\":\"杨戬-永曜之星\"},{\"id\":1701152791468286,\"name\":\"瑶-时之祈愿\",\"value\":\"瑶-时之祈愿\"},{\"id\":1701152791470287,\"name\":\"曜-山海·苍雷引\",\"value\":\"曜-山海·苍雷引\"},{\"id\":1701152791472289,\"name\":\"曜-李逍遥\",\"value\":\"曜-李逍遥\"},{\"id\":1701152791475291,\"name\":\"虞姬-启明星使\",\"value\":\"虞姬-启明星使\"},{\"id\":1701152791480295,\"name\":\"虞姬-无限倾心\",\"value\":\"虞姬-无限倾心\"},{\"id\":1701152791483296,\"name\":\"云缨-鹤归松栖\",\"value\":\"云缨-鹤归松栖\"},{\"id\":1701152791486297,\"name\":\"诸葛亮-时雨天司\",\"value\":\"诸葛亮-时雨天司\"},{\"id\":1701152791486298,\"name\":\"诸葛亮-武陵仙君\",\"value\":\"诸葛亮-武陵仙君\"},{\"id\":1701152791491299,\"name\":\"诸葛亮-鹤羽星尊\",\"value\":\"诸葛亮-鹤羽星尊\"},{\"id\":1701152791493300,\"name\":\"大乔-时之奇旅\",\"value\":\"大乔-时之奇旅\"},{\"id\":1701152791495301,\"name\":\"甄姬-至美·化雀舞\",\"value\":\"甄姬-至美·化雀舞\"},{\"id\":1701152791501304,\"name\":\"鲁班七号-时之奇旅\",\"value\":\"鲁班七号-时之奇旅\"},{\"id\":1701152791503305,\"name\":\"兰陵王-影龙天霄\",\"value\":\"兰陵王-影龙天霄\"},{\"id\":1701152791505306,\"name\":\"吕布-遇见神鼓\",\"value\":\"吕布-遇见神鼓\"},{\"id\":1701152791509307,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(string);
                    String name = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(o.toString()).getString("name"))) {
                                name += "," + JSONObject.parseObject(o.toString()).getString("name");
                            }
                        }
                    }
                    if (StringUtils.isNotEmpty(name)) {
                        obj12.setValue(name.substring(1));
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062325318L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String string = "[{\"id\":1701152791356237,\"name\":\"狄仁杰-夜礼服假面\",\"value\":\"狄仁杰-夜礼服假面\"},{\"id\":1701152791358238,\"name\":\"王昭君-永恒水手月亮\",\"value\":\"王昭君-永恒水手月亮\"},{\"id\":1701152791362239,\"name\":\"安琪拉-追逃游戏\",\"value\":\"安琪拉-追逃游戏\"},{\"id\":1701152791363240,\"name\":\"百里玄策-白虎志\",\"value\":\"百里玄策-白虎志\"},{\"id\":1701152791366241,\"name\":\"不知火舞-绯月行\",\"value\":\"不知火舞-绯月行\"},{\"id\":1701152791368244,\"name\":\"大乔-挚爱花嫁\",\"value\":\"大乔-挚爱花嫁\"},{\"id\":1701152791372245,\"name\":\"关羽-武圣\",\"value\":\"关羽-武圣\"},{\"id\":1701152791372246,\"name\":\"貂蝉-遇见胡旋\",\"value\":\"貂蝉-遇见胡旋\"},{\"id\":1701152791374247,\"name\":\"干将莫邪-画中仙\",\"value\":\"干将莫邪-画中仙\"},{\"id\":1701152791379248,\"name\":\"公孙离-祈雪灵祝\",\"value\":\"公孙离-祈雪灵祝\"},{\"id\":1701152791381249,\"name\":\"后羿-无尽星芒\",\"value\":\"后羿-无尽星芒\"},{\"id\":1701152791384250,\"name\":\"张飞-百相守梦\",\"value\":\"张飞-百相守梦\"},{\"id\":1701152791389252,\"name\":\"伽罗-炽翼辉光\",\"value\":\"伽罗-炽翼辉光\"},{\"id\":1701152791392253,\"name\":\"伽罗-太华\",\"value\":\"伽罗-太华\"},{\"id\":1701152791394254,\"name\":\"橘右京-枫霜尽\",\"value\":\"橘右京-枫霜尽\"},{\"id\":1701152791396255,\"name\":\"狄仁杰-神器·狴犴令\",\"value\":\"狄仁杰-神器·狴犴令\"},{\"id\":1701152791399256,\"name\":\"兰陵王-默契交锋\",\"value\":\"兰陵王-默契交锋\"},{\"id\":1701152791400257,\"name\":\"李白-凤求凰\",\"value\":\"李白-凤求凰\"},{\"id\":1701152791402258,\"name\":\"李信-山海·炽霜斩\",\"value\":\"李信-山海·炽霜斩\"},{\"id\":1701152791406259,\"name\":\"花木兰-燃星之曲\",\"value\":\"花木兰-燃星之曲\"},{\"id\":1701152791411262,\"name\":\"王昭君-星穹之声\",\"value\":\"王昭君-星穹之声\"},{\"id\":1701152791412263,\"name\":\"鲁班七号-寅虎·瑞焰\",\"value\":\"鲁班七号-寅虎·瑞焰\"},{\"id\":1701152791415264,\"name\":\"露娜-启示之音\",\"value\":\"露娜-启示之音\"},{\"id\":1701152791420266,\"name\":\"吕布-天魔缭乱\",\"value\":\"吕布-天魔缭乱\"},{\"id\":1701152791422267,\"name\":\"马可波罗-深海之息\",\"value\":\"马可波罗-深海之息\"},{\"id\":1701152791425268,\"name\":\"马可波罗-妄想实况\",\"value\":\"马可波罗-妄想实况\"},{\"id\":1701152791427269,\"name\":\"娜可露露-前尘镜\",\"value\":\"娜可露露-前尘镜\"},{\"id\":1701152791432270,\"name\":\"女娲-补天\",\"value\":\"女娲-补天\"},{\"id\":1701152791437272,\"name\":\"裴擒虎-寅虎·赤拳\",\"value\":\"裴擒虎-寅虎·赤拳\"},{\"id\":1701152791440273,\"name\":\"上官婉儿-妄想奇谈\",\"value\":\"上官婉儿-妄想奇谈\"},{\"id\":1701152791442274,\"name\":\"孙策-挚爱之约\",\"value\":\"孙策-挚爱之约\"},{\"id\":1701152791444275,\"name\":\"孙尚香-异界灵契\",\"value\":\"孙尚香-异界灵契\"},{\"id\":1701152791447276,\"name\":\"孙悟空-齐天大圣\",\"value\":\"孙悟空-齐天大圣\"},{\"id\":1701152791449277,\"name\":\"孙悟空-零号·赤焰\",\"value\":\"孙悟空-零号·赤焰\"},{\"id\":1701152791452278,\"name\":\"夏洛特-浮生妄\",\"value\":\"夏洛特-浮生妄\"},{\"id\":1701152791453280,\"name\":\"项羽-无限倾心\",\"value\":\"项羽-无限倾心\"},{\"id\":1701152791456281,\"name\":\"小乔-山海·琳琅生\",\"value\":\"小乔-山海·琳琅生\"},{\"id\":1701152791459282,\"name\":\"亚瑟-追逃游戏\",\"value\":\"亚瑟-追逃游戏\"},{\"id\":1701152791464284,\"name\":\"杨戬-永曜之星\",\"value\":\"杨戬-永曜之星\"},{\"id\":1701152791468286,\"name\":\"瑶-时之祈愿\",\"value\":\"瑶-时之祈愿\"},{\"id\":1701152791470287,\"name\":\"曜-山海·苍雷引\",\"value\":\"曜-山海·苍雷引\"},{\"id\":1701152791472289,\"name\":\"曜-李逍遥\",\"value\":\"曜-李逍遥\"},{\"id\":1701152791475291,\"name\":\"虞姬-启明星使\",\"value\":\"虞姬-启明星使\"},{\"id\":1701152791480295,\"name\":\"虞姬-无限倾心\",\"value\":\"虞姬-无限倾心\"},{\"id\":1701152791483296,\"name\":\"云缨-鹤归松栖\",\"value\":\"云缨-鹤归松栖\"},{\"id\":1701152791486297,\"name\":\"诸葛亮-时雨天司\",\"value\":\"诸葛亮-时雨天司\"},{\"id\":1701152791486298,\"name\":\"诸葛亮-武陵仙君\",\"value\":\"诸葛亮-武陵仙君\"},{\"id\":1701152791491299,\"name\":\"诸葛亮-鹤羽星尊\",\"value\":\"诸葛亮-鹤羽星尊\"},{\"id\":1701152791493300,\"name\":\"大乔-时之奇旅\",\"value\":\"大乔-时之奇旅\"},{\"id\":1701152791495301,\"name\":\"甄姬-至美·化雀舞\",\"value\":\"甄姬-至美·化雀舞\"},{\"id\":1701152791501304,\"name\":\"鲁班七号-时之奇旅\",\"value\":\"鲁班七号-时之奇旅\"},{\"id\":1701152791503305,\"name\":\"兰陵王-影龙天霄\",\"value\":\"兰陵王-影龙天霄\"},{\"id\":1701152791505306,\"name\":\"吕布-遇见神鼓\",\"value\":\"吕布-遇见神鼓\"},{\"id\":1701152791509307,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(string);
                    String name = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().equals(JSONObject.parseObject(o.toString()).getString("name"))) {
                                name += "," + JSONObject.parseObject(o.toString()).getString("name");
                            }
                        }
                    }
                    if (StringUtils.isNotEmpty(name)) {
                        obj12.setValue(name.substring(1));
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
        }
        gameAttributes.clear();

//        String join = StringUtils.join(wzrychuanshuoList, ",");
//        obj12.setValue(join);
        list11.add(obj12);

        List<String> wzryshishiList = new ArrayList<>();
        //史诗皮肤
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

        String f11 = goodsInfoAndAttrValueDt.getF11();
        if (StringUtils.isNotEmpty(f11)) {
            String[] split = f11.split(",");
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
            if (CollectionUtils.isNotEmpty(gameAttributes)) {
                for (GameAttribute gameAttribute : gameAttributes) {
                    if (Objects.equals(gameAttribute.getFieldName(), "钟无艳-超时空战士")) {
                        gameAttribute.setFieldName("钟无燕-超时空战士");
                    }
                }
                gameAttributes = gameAttributes.stream().filter(g -> !Objects.equals(g.getFieldName(), "东皇太-逐梦之光")).collect(Collectors.toList());
                if (gameAttributes.size() > 20) {
                    gameAttributes = gameAttributes.subList(0, 20);
                }
            }
        }

        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782845586L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    collect = collect.stream().filter(game -> !Objects.equals(game, "钟无艳-超时空战士")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {

                        String shishiqq = JYMData.shishiqq;
                        List<JSONObject> jsonObjects = JSONObject.parseArray(shishiqq, JSONObject.class);
                        List<String> shishiList = new ArrayList<>();
                        for (JSONObject jsonObject : jsonObjects) {
                            String value = jsonObject.getString("value");
                            for (String s : collect) {
                                if (Objects.equals(s, value)) {
                                    shishiList.add(s);
                                }
                            }
                        }
                        if (CollectionUtils.isNotEmpty(shishiList)) {

                            String join = StringUtils.join(shishiList, ",");
                            obj12.setValue(join);
                        }
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "安卓微信":
                obj12.setPropertyId(1644479969287286L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    collect = collect.stream().filter(game -> !Objects.equals(game, "钟无艳-超时空战士")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018047260L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    collect = collect.stream().filter(game -> !Objects.equals(game, "钟无艳-超时空战士")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }

                } else {
                    obj12.setValue("无");
                }
                if (b) {
                    wzryshishiList.add("无");
                }
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062129002L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//                    collect = collect.stream().filter(game -> !Objects.equals(game, "钟无艳-超时空战士")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
        }
//        join = StringUtils.join(wzryshishiList, ",");
//        obj12.setValue(join);
        list11.add(obj12);
        gameAttributes.clear();

        List<String> xiyouherosList = new ArrayList<>();
        //稀有英雄
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();

        String f5 = goodsInfoAndAttrValueDt.getF5();
        if (StringUtils.isNotEmpty(f5)) {
            String[] split = f5.split(",");
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
        }

        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782767490L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    collect = collect.stream().filter(c -> !Objects.equals(c, "赵云")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "安卓微信":
                obj12.setPropertyId(1644480138139220L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    collect = collect.stream().filter(c -> !Objects.equals(c, "赵云")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017964154L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    collect = collect.stream().filter(c -> !Objects.equals(c, "赵云")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062053439L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    collect = collect.stream().filter(c -> !Objects.equals(c, "赵云")).collect(Collectors.toList());
                    if (CollectionUtils.isNotEmpty(collect)) {
                        String join = StringUtils.join(collect, ",");
                        obj12.setValue(join);
                    } else {
                        obj12.setValue("无");
                    }
                } else {
                    obj12.setValue("无");
                }
                break;
        }
//        join = StringUtils.join(xiyouherosList, ",");
//        obj12.setValue(join);
        list11.add(obj12);
        gameAttributes.clear();

        //星元皮肤
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        String f10 = goodsInfoAndAttrValueDt.getF10();
        if (StringUtils.isNotEmpty(f10)) {
            String[] split = f10.split(",");
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
        }
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782822555L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String xingyuan = "[{\"id\":1701933705372048,\"name\":\"云鹰彻晓\",\"value\":\"云鹰彻晓\"},{\"id\":1701933705375049,\"name\":\"玉鸾吟\",\"value\":\"玉鸾吟\"},{\"id\":1701933705379050,\"name\":\"黛羽霜翎\",\"value\":\"黛羽霜翎\"},{\"id\":1701933705382051,\"name\":\"无限倾慕\",\"value\":\"无限倾慕\"},{\"id\":1701933705386052,\"name\":\"乞巧织春\",\"value\":\"乞巧织春\"},{\"id\":1701933705388054,\"name\":\"星际治安官\",\"value\":\"星际治安官\"},{\"id\":1701933705391056,\"name\":\"时之羁绊\",\"value\":\"时之羁绊\"},{\"id\":1701933705393058,\"name\":\"时之思念\",\"value\":\"时之思念\"},{\"id\":1701933705396059,\"name\":\"时之愿境\",\"value\":\"时之愿境\"},{\"id\":1701933705398060,\"name\":\"未来机甲\",\"value\":\"未来机甲\"},{\"id\":1701933705402062,\"name\":\"幻海之心\",\"value\":\"幻海之心\"},{\"id\":1701933705404063,\"name\":\"幽冥火\",\"value\":\"幽冥火\"},{\"id\":1701933705408064,\"name\":\"幽冥之眼\",\"value\":\"幽冥之眼\"},{\"id\":1701933705414066,\"name\":\"金色仲夏夜\",\"value\":\"金色仲夏夜\"},{\"id\":1701933705416067,\"name\":\"零号·雷霆\",\"value\":\"零号·雷霆\"},{\"id\":1701933705419069,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(xingyuan);
                    String xy = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(o.toString()).getString("value"))) {
                                xy += "," + JSONObject.parseObject(o.toString()).getString("value");
                            }
                        }
                    }
                    obj12.setValue(xy.substring(1));
                } else {
                    obj12.setValue("无");
                }
                break;
            case "安卓微信":
                obj12.setPropertyId(1644480021004023L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String xingyuan = "[{\"id\":1698199074113668,\"name\":\"玉鸾吟\",\"value\":\"玉鸾吟\"},{\"id\":1698199074116670,\"name\":\"黛羽霜翎\",\"value\":\"黛羽霜翎\"},{\"id\":1698199074118674,\"name\":\"无限倾慕\",\"value\":\"无限倾慕\"},{\"id\":1698199074120676,\"name\":\"乞巧织春\",\"value\":\"乞巧织春\"},{\"id\":1698199074122677,\"name\":\"星际治安官\",\"value\":\"星际治安官\"},{\"id\":1698199074125678,\"name\":\"时之羁绊\",\"value\":\"时之羁绊\"},{\"id\":1698199074129679,\"name\":\"时之思念\",\"value\":\"时之思念\"},{\"id\":1698199074132681,\"name\":\"时之愿境\",\"value\":\"时之愿境\"},{\"id\":1698199074135686,\"name\":\"未来机甲\",\"value\":\"未来机甲\"},{\"id\":1698199074138690,\"name\":\"幻海之心\",\"value\":\"幻海之心\"},{\"id\":1698199074141691,\"name\":\"幽冥火\",\"value\":\"幽冥火\"},{\"id\":1698199074145692,\"name\":\"幽冥之眼\",\"value\":\"幽冥之眼\"},{\"id\":1698199074148693,\"name\":\"金色仲夏夜之梦\",\"value\":\"金色仲夏夜之梦\"},{\"id\":1698199074154696,\"name\":\"零号-雷霆\",\"value\":\"零号-雷霆\"},{\"id\":1698199074157699,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(xingyuan);
                    String xy = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(o.toString()).getString("value"))) {
                                xy += "," + JSONObject.parseObject(o.toString()).getString("value");
                            }
                        }
                    }
                    obj12.setValue(xy.substring(1));
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580018024229L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String xingyuan = "[{\"id\":1698199074113668,\"name\":\"玉鸾吟\",\"value\":\"玉鸾吟\"},{\"id\":1698199074116670,\"name\":\"黛羽霜翎\",\"value\":\"黛羽霜翎\"},{\"id\":1698199074118674,\"name\":\"无限倾慕\",\"value\":\"无限倾慕\"},{\"id\":1698199074120676,\"name\":\"乞巧织春\",\"value\":\"乞巧织春\"},{\"id\":1698199074122677,\"name\":\"星际治安官\",\"value\":\"星际治安官\"},{\"id\":1698199074125678,\"name\":\"时之羁绊\",\"value\":\"时之羁绊\"},{\"id\":1698199074129679,\"name\":\"时之思念\",\"value\":\"时之思念\"},{\"id\":1698199074132681,\"name\":\"时之愿境\",\"value\":\"时之愿境\"},{\"id\":1698199074135686,\"name\":\"未来机甲\",\"value\":\"未来机甲\"},{\"id\":1698199074138690,\"name\":\"幻海之心\",\"value\":\"幻海之心\"},{\"id\":1698199074141691,\"name\":\"幽冥火\",\"value\":\"幽冥火\"},{\"id\":1698199074145692,\"name\":\"幽冥之眼\",\"value\":\"幽冥之眼\"},{\"id\":1698199074148693,\"name\":\"金色仲夏夜之梦\",\"value\":\"金色仲夏夜之梦\"},{\"id\":1698199074154696,\"name\":\"零号-雷霆\",\"value\":\"零号-雷霆\"},{\"id\":1698199074157699,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(xingyuan);
                    String xy = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(o.toString()).getString("value"))) {
                                xy += "," + JSONObject.parseObject(o.toString()).getString("value");
                            }
                        }
                    }
                    obj12.setValue(xy.substring(1));
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062111527L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    String xingyuan = "[{\"id\":1698199074113668,\"name\":\"玉鸾吟\",\"value\":\"玉鸾吟\"},{\"id\":1698199074116670,\"name\":\"黛羽霜翎\",\"value\":\"黛羽霜翎\"},{\"id\":1698199074118674,\"name\":\"无限倾慕\",\"value\":\"无限倾慕\"},{\"id\":1698199074120676,\"name\":\"乞巧织春\",\"value\":\"乞巧织春\"},{\"id\":1698199074122677,\"name\":\"星际治安官\",\"value\":\"星际治安官\"},{\"id\":1698199074125678,\"name\":\"时之羁绊\",\"value\":\"时之羁绊\"},{\"id\":1698199074129679,\"name\":\"时之思念\",\"value\":\"时之思念\"},{\"id\":1698199074132681,\"name\":\"时之愿境\",\"value\":\"时之愿境\"},{\"id\":1698199074135686,\"name\":\"未来机甲\",\"value\":\"未来机甲\"},{\"id\":1698199074138690,\"name\":\"幻海之心\",\"value\":\"幻海之心\"},{\"id\":1698199074141691,\"name\":\"幽冥火\",\"value\":\"幽冥火\"},{\"id\":1698199074145692,\"name\":\"幽冥之眼\",\"value\":\"幽冥之眼\"},{\"id\":1698199074148693,\"name\":\"金色仲夏夜之梦\",\"value\":\"金色仲夏夜之梦\"},{\"id\":1698199074154696,\"name\":\"零号-雷霆\",\"value\":\"零号-雷霆\"},{\"id\":1698199074157699,\"name\":\"无\",\"value\":\"无\"}]\n";
                    JSONArray jsonArray = JSONArray.parseArray(xingyuan);
                    String xy = "";
                    for (GameAttribute gameAttribute1 : gameAttributes) {
                        for (Object o : jsonArray) {
                            if (gameAttribute1.getFieldName().contains(JSONObject.parseObject(o.toString()).getString("value"))) {
                                xy += "," + JSONObject.parseObject(o.toString()).getString("value");
                            }
                        }
                    }
                    obj12.setValue(xy.substring(1));
                } else {
                    obj12.setValue("无");
                }
                break;
        }
//        //王者新增参数
//        if (CollectionUtils.isNotEmpty(gameAttributes)) {
//            List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
//            String join = StringUtils.join(collect, ",");
//            String xingyuan = "王昭君-乞巧织春,狄仁杰-星际治安官,刘备-时之羁绊,刘备-时之思念,瑶-时之愿境,孙尚香-未来机甲,武则天-幻海之心,孙悟空-幽冥火,宫本武藏-幽冥之眼,貂蝉-金色仲夏夜之梦,孙悟空-零号-雷霆";
//            List<String> split = Arrays.asList(xingyuan.split(","));
//            StringBuilder builder = new StringBuilder();
//            for (String s : collect) {
//                if (split.contains(s)) {
//                    builder.append(s + ",");
//                }
//            }
//            if (StringUtils.isNotEmpty(builder.toString())) {
//                String value = builder.substring(0, builder.length() - 1);
//                obj12.setValue(value);
//            } else {
//                obj12.setValue("无");
//            }
//        } else {
//            obj12.setValue("无");
//        }
//
        list11.add(obj12);
        gameAttributes.clear();

        String f9 = goodsInfoAndAttrValueDt.getF9();
        if (StringUtils.isNotEmpty(f9)) {
            String[] split = f9.split(",");
            gameAttributes = gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(split, Long.class));
        }

        //典藏皮肤
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        gameAttributes.stream().forEach(game -> game.getFieldName());
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782793518L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = StringUtils.join(collect, ",");
                    obj12.setValue(join);
                } else {
                    obj12.setValue("无");
                }
                break;
            case "安卓微信":
                obj12.setPropertyId(1644480089843039L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = StringUtils.join(collect, ",");
                    obj12.setValue(join);
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017990187L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = StringUtils.join(collect, ",");
                    obj12.setValue(join);
                } else {
                    obj12.setValue("无");
                }
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062079475L);
                if (CollectionUtils.isNotEmpty(gameAttributes)) {
                    List<String> collect = gameAttributes.stream().map(game -> game.getFieldName()).collect(Collectors.toList());
                    String join = StringUtils.join(collect, ",");
                    obj12.setValue(join);
                } else {
                    obj12.setValue("无");
                }
                break;
        }
        list11.add(obj12);
        gameAttributes.clear();

        //皮肤数量
        obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
        switch (regional) {
            case "安卓QQ":
                obj12.setPropertyId(1642579782765488L);
                break;
            case "安卓微信":
                obj12.setPropertyId(1644480165417006L);
                break;
            case "苹果QQ":
                obj12.setPropertyId(1642580017959146L);
                break;
            case "苹果微信":
                obj12.setPropertyId(1642581062050436L);
                break;
        }

        if (!StringUtils.isEmpty(goodsInfoAndAttrValueDt.getF8())) {
            obj12.setValue(goodsInfoAndAttrValueDt.getF8());
        } else {
            obj12.setValue("0");
        }
        list11.add(obj12);
        //实名
        if (StringUtils.isNotEmpty(goodsInfoAndAttrValueDt.getF16())) {
            GameAttribute gameAttribute1 = gameAttributeMapper.selectGameAttributeById(Long.valueOf(goodsInfoAndAttrValueDt.getF16()));
            obj12 = new AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto();
            switch (regional) {
                case "安卓QQ":
                    obj12.setPropertyId(1691487155126339l);
                    break;
                case "安卓微信":
                    obj12.setPropertyId(1691487222296156l);
                    break;
                case "苹果QQ":
                    obj12.setPropertyId(1691487392896683l);
                    break;
                case "苹果微信":
                    obj12.setPropertyId(1691487452347388l);
                    break;
            }
            if (gameAttribute1.getFieldName().equals("可二次实名")) {
                obj12.setValue("可二次实名");
            } else {
                obj12.setValue("不可二次实名");
            }
        }
        list11.add(obj12);
        return list11;
    }

    //通过阿里云图片识别是否带营地
    private boolean sensitiveScan(String path) {

        SysDictData sysDictData = new SysDictData();
        sysDictData.setDictType("BDTEXTParse");
        sysDictData.setStatus(Constants.STR_0);
        List<SysDictData> sysDictDataList = sysDictDataMapper.selectDictDataList(sysDictData);
        String baseUrl = "";
        if (CollectionUtils.isNotEmpty(sysDictDataList)) {
            baseUrl = sysDictDataList.get(0).getDictValue();
            Map<String, Object> params = new HashMap<>();
            params.put("path", path);

            String post = HttpUtil.post(baseUrl + "/shiyi/v1/ocr/ocrUrl", params);
            List<JSONObject> jsonObjects = JSONObject.parseArray(post, JSONObject.class);
            StringBuffer str = new StringBuffer();
            for (JSONObject jsonObject : jsonObjects) {
                String text = jsonObject.getString("text");
                str.append(text);
            }
            String result = str.toString();
            sysDictData = new SysDictData();
            sysDictData.setDictType("jym_check");
            sysDictData.setStatus(Constants.STR_0);
            sysDictDataList = sysDictDataMapper.selectDictDataList(sysDictData);
            for (SysDictData dictData : sysDictDataList) {
                if (result.contains(dictData.getDictValue())) {
                    return false;
                }
            }
            String pattern = "[1-9]([0-9]{5,11})";
            boolean matches = result.matches(pattern);
            if (matches) {
                return false;
            } else if (!matches) {
                return true;
            } else if (getYindi(result)) {
                return true;
            } else {
                return false;
            }
        } else {
            return true;
        }

    }

    private String guolv(String des) {
        SysDictData sysDictData = new SysDictData();
        sysDictData.setDictType("jym_check");
        sysDictData.setStatus(Constants.STR_0);
        List<SysDictData> sysDictDataList = sysDictDataMapper.selectDictDataList(sysDictData);
        for (SysDictData dictData : sysDictDataList) {
            String value = dictData.getDictValue();
            if (des.contains(value)) {
                des = des.replace(value, "");
            }
        }
        return des;
    }

    private String toCoverImg(String imgUrl) {
        //1、判断图片是否存在.jpg 或者 .png  .JPG .PNG
        //2、不存在开始解析上传七牛云
        //3、返回地址
        return imgUrl;

//        boolean b = false;
//        if (imgUrl.contains("game.ikbh.top")) {
//            String imgStr = HttpUtil.get(imgUrl + "?imageInfo");
//            log.info(imgStr);
//            JSONObject jsonObject = JSONObject.parseObject(imgStr);
//            Long size = jsonObject.getLong("size");
//            if (size < 50000000l) {
//                b = true;
//            }
//            if (!(imgUrl.contains(".jpg") || imgUrl.contains(".png") || imgUrl.contains(".JPG") || imgUrl.contains(".PNG")) && (StringUtils.isNotEmpty(imgUrl) || b)) {
//                URL url = null;
//                try {
//                    url = new URL(imgUrl);
//                    BufferedImage image = ImageIO.read(url.openStream());
//                    byte[] bytes = ImgUntil.bufferedImageToByteArray(image);
//                    String path = uploadService.upload2Qiniu(bytes, "jym/" + UUIDGenerator.generate() + ".jpg");
//                    return path;
//                } catch (Exception e) {
//                    e.printStackTrace();
//                }
//            }
//        }
//        return imgUrl;

    }


    private String desRepalce(String des) {
        if (StringUtils.isNotEmpty(des)) {
            des = des.replace("包人脸", "").replace("营地号", "")
                    .replace("有二次", "可二次")
                    .replace("人脸", "")
                    .replace("实名", "")
                    .replace("未成年人", "")
                    .replace("暑假", "")
                    .replace("高中", "")
                    .replace("防沉迷", "")
                    .replace("身份证", "")
                    .replace("实名信息", "")
                    .replace("身份证号码", "")
                    .replace("实名", "")
                    .replace("人脸验证", "")
                    .replace("未成年词", "")
                    .replace("小学", "")
                    .replace("初中", "")
                    .replace("高中", "")
                    .replace("营地ID", "")
                    .replace("Q号", "")
                    .replace("Q", "扣")
                    .replace("WX", "V")
                    .replace("QQ号", "")
                    .replace("手机号", "")
                    .replace("微信号", "V")
                    .replace("初中", "")
                    .replace("到删", "")
                    .replace("到删除", "")
                    .replace("到除", "")
                    .replace("营", "")
                    .replace("地", "")
                    .replace("ID", "")
                    .replace("】", "")
                    .replace("【", "")
                    .replace("|", "")
                    .replace("小学", "");
        }
        return des;
    }

    //只保留中文
    private String onlyHanZi(String str) {
        String reg = "[^\u4e00-\u9fa5]";
        str = str.replaceAll(reg, "");
        return str;
    }

    private boolean getYindi(String des) {

        String str2 = "";
        if (StringUtils.isNotEmpty(des)) {
            for (int i = 0; i < des.length(); i++) {
                if (des.charAt(i) >= 48 && des.charAt(i) <= 57) {
                    str2 += des.charAt(i);
                } else {
                    if (str2.length() > 6) {
                        des = des.replace(str2, "");
                        return false;
                    }
                    str2 = "";
                }
            }
        }
        return true;
    }


    private String reRedioValue(String value) {
        String reStr = "";
        if (StringUtils.isNotEmpty(value)) {
            GameAttribute gameAttribute =
                    gameAttributeMapper.selectGameAttributeById(Long.valueOf(value));
            if (gameAttribute != null) {
                if (StringUtils.isNotEmpty(gameAttribute.getFieldName())) {
                    reStr = gameAttribute.getFieldName();
                }

            }
        }
        return reStr;
    }

    private String coverShiZhuang(List<String> collect) {

        List<String> list = new ArrayList<>();

        String xiyouzhuang = JYMData.xiyouzhuang;
        List<JSONObject> jsonObjects = JSONObject.parseArray(xiyouzhuang, JSONObject.class);
        for (JSONObject jsonObject : jsonObjects) {
            String name = jsonObject.getString("name");
            for (String s : collect) {
                if (onlyHanZi(s.replace("木乃伊", "冥河战士")).contains(onlyHanZi(name))) {

                    list.add(s);
                }
            }
        }
        if (CollectionUtils.isNotEmpty(list)) {
            return StringUtils.join(list, ",");
        }
        return "无";
    }

    private String getAccount() {
        //获取一个随机数
        double rand = Math.random();
        //将随机数转换为字符串
        String str = String.valueOf(rand).replace("0.", "");
        //截取字符串
        String newStr = str.substring(0, 11);
        return newStr;
    }

    public static void main(String[] args) {

    }

    private String reIds(String allIds, String ids) {
        if (StringUtils.isNotEmpty(ids)) {
            if (StringUtils.isNotEmpty(allIds)) {
                allIds = allIds + "," + ids;
            } else {
                allIds = ids;
            }
        }
        return allIds;
    }

    private List<GameAttribute> getGameAttributs(String ids) {
        if (StringUtils.isEmpty(ids)) {
            return new ArrayList<>();
        }
        return gameAttributeMapper.selectGameAttributeListByIds((Long[]) ConvertUtils.convert(ids.split(","),
                Long.class));
    }

    public void gjYjwjShuXing(String string,String options,List<AlibabaJymItemExternalGoodsBatchPublishRequest.GoodsPropertyValueDto> propertyValueDtoListArr,String propertyId){
        List<GameAttribute> gameAttributeList = getGameAttributs(string);
        if (StringUtils.isNotEmpty(options)) {
            String goods_property_option_dto = JSONObject.parseObject(options).getString("goods_property_option_dto");
            JSONArray jsonArray2 = JSONArray.parseArray(goods_property_option_dto);
            List<String> list = gameAttributeList.stream().map(s -> s.getFieldName()).collect(Collectors.toList());
            String value = "";
            for (GameAttribute gameAttribute1 : gameAttributeList) {
                for (Object p : jsonArray2) {
                    if (JSONObject.parseObject(p.toString()).getString("value").contains(gameAttribute1.getFieldName())||gameAttribute1.getFieldName().contains(JSONObject.parseObject(p.toString()).getString("value"))) {
                        value += "," + JSONObject.parseObject(p.toString()).getString("value");
                    }
                }
            }
            if (StringUtils.isNotEmpty(value)) {
                propertyValueDtoListArr.add(addPropertyParam(Long.valueOf(propertyId), value.substring(1)));
            }
        }
    }
}